diff options
| author | Mike McQuaid | 2016-11-21 08:50:01 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-11-21 08:50:01 +0000 |
| commit | b9d0d7719a9ecc31be4b2fb3e027e20b3ba378e6 (patch) | |
| tree | aca50fb62166fc8dffe93c2b67530dd19cada7f0 /Library/Homebrew | |
| parent | 28a00e9d6cccf3fd4b483d2c2f684073c4aae999 (diff) | |
| download | brew-b9d0d7719a9ecc31be4b2fb3e027e20b3ba378e6.tar.bz2 | |
cc: don't filter -fopenmp for non-llvm_clang.
We can filter it just for Clang and let it be used by anything else.
Diffstat (limited to 'Library/Homebrew')
| -rwxr-xr-x | Library/Homebrew/shims/super/cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc index 167fe8c21..9d2ee0d34 100755 --- a/Library/Homebrew/shims/super/cc +++ b/Library/Homebrew/shims/super/cc @@ -156,7 +156,7 @@ class Cmd /^-O[0-9zs]?$/, "-fast", "-no-cpp-precomp", "-pedantic", "-pedantic-errors", "-Wno-long-double", "-Wno-unused-but-set-variable" - when "-mno-fused-madd", "-fforce-addr", "-fno-defer-pop", + when "-fopenmp", "-lgomp", "-mno-fused-madd", "-fforce-addr", "-fno-defer-pop", "-mno-dynamic-no-pic", "-fearly-inlining", /^-f(?:no-)?inline-functions-called-once/, /^-finline-limit/, /^-f(?:no-)?check-new/, "-fno-delete-null-pointer-checks", "-fcaller-saves", "-fthread-jumps", "-fno-reorder-blocks", "-fcse-skip-blocks", @@ -165,8 +165,6 @@ class Cmd "-fuse-linker-plugin", "-frounding-math" # clang doesn't support these flags args << arg unless tool =~ /^clang/ - when "-fopenmp", "-lgomp" - args << arg if tool =~ /^llvm_clang/ when "--fast-math" arg = "-ffast-math" if tool =~ /^clang/ args << arg |
