Remove -fopenmp *and* -lgomp
Apparently LLVM can use these, so only remove if clang. Refs Homebrew/homebrew#14569.
This commit is contained in:
parent
b97c0919f8
commit
88b1da7405
@ -100,9 +100,9 @@ class Cmd
|
|||||||
%r{^-[IL]/opt/local}, %r{^-[IL]/sw}, # no macports/fink
|
%r{^-[IL]/opt/local}, %r{^-[IL]/sw}, # no macports/fink
|
||||||
%r{^-[IL]/usr/X11}, %r{^-[IL]/opt/X11}, # we add X11 ourselves
|
%r{^-[IL]/usr/X11}, %r{^-[IL]/opt/X11}, # we add X11 ourselves
|
||||||
'-pedantic', '-pedantic-errors'
|
'-pedantic', '-pedantic-errors'
|
||||||
when /^-fopenmp/
|
when '-fopenmp', '-lgomp'
|
||||||
# remove this arg: it fails the build with:
|
# clang doesn't support OpenMP
|
||||||
# ld: library not found for -lgomp
|
args << arg if not tool =~ /^clang/
|
||||||
when /^-W.*/
|
when /^-W.*/
|
||||||
args << arg if arg =~ /^-Wl,/
|
args << arg if arg =~ /^-Wl,/
|
||||||
when '-macosx_version_min', '-dylib_install_name'
|
when '-macosx_version_min', '-dylib_install_name'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user