aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-01-22 23:52:20 -0600
committerJack Nagel2013-01-23 00:18:01 -0600
commit8135ed6528676aee2ba817b5f39b01745f0c7615 (patch)
tree81fa7d335090e4f864ee8c931dade22ef0d18e65 /Library
parent3725f771de576ca7324fd566678e3416e270a8a7 (diff)
downloadbrew-8135ed6528676aee2ba817b5f39b01745f0c7615.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 Homebrew/homebrew#17252.
Diffstat (limited to 'Library')
-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'