diff options
| author | chris hawley <chridye@gmail.com> | 2019-05-12 12:49:23 -0400 |
|---|---|---|
| committer | Rick Gibbed <rick@gibbed.us> | 2019-05-12 11:49:23 -0500 |
| commit | af7bc97429ab6109723d272cf1cd945fd444269f (patch) | |
| tree | 2100db73cd88d6fb9bb1be52e72486c36ff830fc /premake5.lua | |
| parent | 2c1a28734e2db3eb4516050d9fbc5135c97a8079 (diff) | |
Better optimization flags for release builds.
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua index cbced3139..96072c4c4 100644 --- a/premake5.lua +++ b/premake5.lua @@ -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") |
