From 0845341de357010dbe46f01e0bc59f4acd668c7f Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 30 Jul 2013 18:39:54 -0700 Subject: [PATCH] cc: delegate cpp to the real tool, not compiler Fixes Homebrew/homebrew#21527. --- Library/ENV/4.3/cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 5935cb5812..fcba402633 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