Skip to content
Snippets Groups Projects
Commit 8135ed65 authored by Jack Nagel's avatar Jack Nagel
Browse files

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.
parent 3725f771
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ class Cmd
# clang doesn't support OpenMP
args << arg if not tool =~ /^clang/
when /^-W.*/
args << arg if arg =~ /^-Wl,/
args << arg if arg =~ /^-W[alp],/
when '-macosx_version_min', '-dylib_install_name'
args << "-Wl,#{arg},#{whittler.next}"
when '-dylib'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment