aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
authorJack Nagel2013-01-22 23:52:20 -0600
committerJack Nagel2013-01-23 00:18:01 -0600
commitb82c96b08500ff9f9e7674fbf6366fc3ad440dc0 (patch)
treec30219328312d6f9cb3421d13f98dba233837680 /Library/ENV
parent21efd0803cc1eae9912fdd12bd5ed440959c75ff (diff)
downloadhomebrew-b82c96b08500ff9f9e7674fbf6366fc3ad440dc0.tar.bz2
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 #17252.
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 4cfa6c856..a7317abf8 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -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'