From 8135ed6528676aee2ba817b5f39b01745f0c7615 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 22 Jan 2013 23:52:20 -0600 Subject: [PATCH] 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. --- Library/ENV/4.3/cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 4cfa6c856e..a7317abf8e 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'