Skip to content
Snippets Groups Projects
Commit ebfd0968 authored by ilovezfs's avatar ilovezfs Committed by Xu Cheng
Browse files

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: default avatarilovezfs <ilovezfs@icloud.com>
parent 63c0a9fa
No related branches found
No related tags found
No related merge requests found
......@@ -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]/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment