superenv: allow -W[alp], style arguments to pass through
We already (correctly) allow -Wl, style linker arguments to pass through; extend this to -Wp, (preprocessor) and -Wa, (assembler). Fixes Homebrew/homebrew#17252.
This commit is contained in:
parent
3725f771de
commit
8135ed6528
@ -109,7 +109,7 @@ class Cmd
|
|||||||
# clang doesn't support OpenMP
|
# clang doesn't support OpenMP
|
||||||
args << arg if not tool =~ /^clang/
|
args << arg if not tool =~ /^clang/
|
||||||
when /^-W.*/
|
when /^-W.*/
|
||||||
args << arg if arg =~ /^-Wl,/
|
args << arg if arg =~ /^-W[alp],/
|
||||||
when '-macosx_version_min', '-dylib_install_name'
|
when '-macosx_version_min', '-dylib_install_name'
|
||||||
args << "-Wl,#{arg},#{whittler.next}"
|
args << "-Wl,#{arg},#{whittler.next}"
|
||||||
when '-dylib'
|
when '-dylib'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user