summaryrefslogtreecommitdiff
path: root/premake5.lua
diff options
context:
space:
mode:
authorTriang3l <triang3l@yandex.ru>2020-11-19 21:28:02 +0300
committerTriang3l <triang3l@yandex.ru>2020-11-19 21:28:02 +0300
commit3ff59651332c66a0bb37049615656d950639047e (patch)
tree0bf467f25e3326c032b131b673a37bebadcbe9af /premake5.lua
parent99bb82fd1c5ab532b6a2b47d7aa56cc0aea67caf (diff)
[Build] Disable potentially dangerous floating point optimizations
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua
index fac718955..ac921ff61 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -81,10 +81,15 @@ filter("configurations:Release")
})
optimize("Speed")
inlining("Auto")
- floatingpoint("Fast")
flags({
"LinkTimeOptimization",
})
+ -- Not using floatingpoint("Fast") - NaN checks are used in some places
+ -- (though rarely), overall preferable to avoid any functional differences
+ -- between debug and release builds, and to have calculations involved in GPU
+ -- (especially anything that may affect vertex position invariance) and CPU
+ -- (such as constant propagation) emulation as predictable as possible,
+ -- including handling of specials since games make assumptions about them.
filter("platforms:Linux")
system("linux")
toolset("clang")