Remove -fopenmp *and* -lgomp

Apparently LLVM can use these, so only remove if clang.

Refs Homebrew/homebrew#14569.
This commit is contained in:
Max Howell 2012-09-02 11:44:23 -04:00
parent b97c0919f8
commit 88b1da7405

View File

@ -100,9 +100,9 @@ class Cmd
%r{^-[IL]/opt/local}, %r{^-[IL]/sw}, # no macports/fink
%r{^-[IL]/usr/X11}, %r{^-[IL]/opt/X11}, # we add X11 ourselves
'-pedantic', '-pedantic-errors'
when /^-fopenmp/
# remove this arg: it fails the build with:
# ld: library not found for -lgomp
when '-fopenmp', '-lgomp'
# clang doesn't support OpenMP
args << arg if not tool =~ /^clang/
when /^-W.*/
args << arg if arg =~ /^-Wl,/
when '-macosx_version_min', '-dylib_install_name'