Enable Link-time code generation

It seems to have a positive impact on AVs #127
This commit is contained in:
Maurice Heumann 2021-04-25 19:29:21 +02:00
parent 6d388f7231
commit a57cec9d44
2 changed files with 8 additions and 0 deletions

View File

@ -248,6 +248,9 @@ end
flags {"NoIncrementalLink", "NoMinimalRebuild", "MultiProcessorCompile", "No64BitChecks"}
buildoptions {"/GL"}
linkoptions { "/IGNORE:4702", "/LTCG" }
configuration "windows"
defines {"_WINDOWS", "WIN32"}

View File

@ -2,10 +2,15 @@
#include "../event.hpp"
#pragma warning(push)
#pragma warning(disable: 4702)
#define SOL_ALL_SAFETIES_ON 1
#define SOL_PRINT_ERRORS 0
#include <sol/sol.hpp>
#pragma warning(pop)
#include "scheduler.hpp"
#include "event_handler.hpp"