Use cc -E, not cpp -E. Fixes Homebrew/homebrew#15402.

This commit is contained in:
Max Howell 2012-10-27 19:39:53 -04:00
parent 73b3977ab4
commit a967f5c82a

View File

@ -53,7 +53,7 @@ class Cmd
def tool
@tool ||= case @arg0
when 'ld' then 'ld'
when 'cc', 'c99', 'c89'
when 'cc', 'c99', 'c89', 'cpp'
# 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