summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-08-30 12:44:17 +0200
committerGitHub <noreply@github.com>2017-08-30 12:44:16 +0200
commite59b1212daec0462660dc9950e23bdb626a690c6 (patch)
treedae76cef9cc4cd3ff82dd176308cbbfbeaa8ecd1 /platform
parent8b9026c05e9982a7bc0c7f52776ad74276b90252 (diff)
parentd44414c7112336fddbbb1eee782982b638690e70 (diff)
Merge pull request #10776 from hpvb/fix-10758
Disable -ffast-math for etc2comp
Diffstat (limited to 'platform')
-rw-r--r--platform/x11/detect.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 79778136ad..f355de0eb3 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -74,7 +74,9 @@ def configure(env):
## Build type
if (env["target"] == "release"):
- env.Prepend(CCFLAGS=['-Ofast'])
+ # -O3 -ffast-math is identical to -Ofast. We need to split it out so we can selectively disable
+ # -ffast-math in code for which it generates wrong results.
+ env.Prepend(CCFLAGS=['-O3', '-ffast-math'])
if (env["debug_release"] == "yes"):
env.Prepend(CCFLAGS=['-g2'])