cc: delegate cpp to the real tool, not compiler

Fixes Homebrew/homebrew#21527.
This commit is contained in:
Misty De Meo 2013-07-30 18:39:54 -07:00
parent f274ad3250
commit 0845341de3

View File

@ -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