aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-07-30 18:39:54 -0700
committerMisty De Meo2013-07-30 18:41:27 -0700
commitaca99ae0d735aad3cd2a5472b0b2eb31f879d8e8 (patch)
tree0b371e887e6bada36f36efea3a655e5cc0e0c3a8 /Library
parentf54c401fc485e2443c4779f057ded33fcf3618c9 (diff)
downloadhomebrew-aca99ae0d735aad3cd2a5472b0b2eb31f879d8e8.tar.bz2
cc: delegate cpp to the real tool, not compiler
Fixes #21527.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 5935cb581..fcba40263 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -55,7 +55,8 @@ class Cmd
def tool
@tool ||= case @arg0
when 'ld' then 'ld'
- when 'cc', 'c99', 'c89', 'cpp'
+ when 'cpp' then 'cpp'
+ when 'cc', 'c99', 'c89'
# Ideally we would run `cx9`, however these tools are POSIX compliant
# and don't support many flags. We need -isystem for instance, but also
# reliability is generally much higher if we just get clang/gcc to do