summaryrefslogtreecommitdiff
path: root/modules
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 /modules
parent8b9026c05e9982a7bc0c7f52776ad74276b90252 (diff)
parentd44414c7112336fddbbb1eee782982b638690e70 (diff)
Merge pull request #10776 from hpvb/fix-10758
Disable -ffast-math for etc2comp
Diffstat (limited to 'modules')
-rw-r--r--modules/etc/SCsub4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/etc/SCsub b/modules/etc/SCsub
index 8f5937017e..f0c1ee64b9 100644
--- a/modules/etc/SCsub
+++ b/modules/etc/SCsub
@@ -35,3 +35,7 @@ env_etc.add_source_files(env.modules_sources, "*.cpp")
# upstream uses c++11
env_etc.Append(CXXFLAGS="-std=gnu++11")
+# -ffast-math seems to be incompatible with ec2comp on recent versions of
+# GCC and Clang
+if '-ffast-math' in env_etc['CCFLAGS']:
+ env_etc['CCFLAGS'].remove('-ffast-math')