aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilovezfs2016-03-29 00:52:52 -0700
committerXu Cheng2016-03-31 17:10:22 +0800
commitebfd096826224b712929cf73e347cf09b98ce47f (patch)
treef7dda1aa0bac721e898e8d61cf6295de2c5b7851
parent63c0a9fa92c100e505cc2a53e752b5a448c61473 (diff)
downloadbrew-ebfd096826224b712929cf73e347cf09b98ce47f.tar.bz2
superenv: refurbish --fast-math for :clang
"--fast-math" caused build failure with clang for homebrew/science/delly-0.7.2 Apparently, clang only likes this option when it's referred to as "-ffast-math" Closes Homebrew/homebrew#50507. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
-rwxr-xr-xLibrary/ENV/4.3/cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 2c6dc205e..0d07db00f 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -158,6 +158,9 @@ class Cmd
"-fuse-linker-plugin"
# clang doesn't support these flags
args << arg unless tool =~ /^clang/
+ when "--fast-math"
+ arg = "-ffast-math" if tool =~ /^clang/
+ args << arg
when "-Wno-deprecated-register"
# older gccs don't support these flags
args << arg unless tool =~ /^g..-4.[02]/