cc: delegate cpp to the real tool, not compiler
Fixes Homebrew/homebrew#21527.
This commit is contained in:
parent
f274ad3250
commit
0845341de3
@ -55,7 +55,8 @@ class Cmd
|
|||||||
def tool
|
def tool
|
||||||
@tool ||= case @arg0
|
@tool ||= case @arg0
|
||||||
when 'ld' then 'ld'
|
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
|
# Ideally we would run `cx9`, however these tools are POSIX compliant
|
||||||
# and don't support many flags. We need -isystem for instance, but also
|
# 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
|
# reliability is generally much higher if we just get clang/gcc to do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user