From b9d0d7719a9ecc31be4b2fb3e027e20b3ba378e6 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 21 Nov 2016 08:50:01 +0000 Subject: cc: don't filter -fopenmp for non-llvm_clang. We can filter it just for Clang and let it be used by anything else. --- Library/Homebrew/shims/super/cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3