From ebfd096826224b712929cf73e347cf09b98ce47f Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Tue, 29 Mar 2016 00:52:52 -0700 Subject: 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 --- Library/ENV/4.3/cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library') 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]/ -- cgit v1.2.3