Better optimization flags for release builds.

This commit is contained in:
chris hawley 2019-05-12 12:49:23 -04:00 committed by Rick Gibbed
parent 2c1a28734e
commit af7bc97429
1 changed files with 6 additions and 1 deletions

View File

@ -79,7 +79,9 @@ filter("configurations:Release")
"NDEBUG",
"_NO_DEBUG_HEAP=1",
})
optimize("On")
optimize("speed")
inlining("Auto")
floatingpoint("Fast")
flags({
"LinkTimeOptimization",
})
@ -88,6 +90,9 @@ filter({"configurations:Release", "platforms:Windows"})
linkoptions({
"/NODEFAULTLIB:MSVCRTD",
})
buildoptions({
"/GT", -- enable fiber-safe optimizations
})
filter("platforms:Linux")
system("linux")