diff options
| author | Misty De Meo | 2013-08-27 18:31:57 -0700 |
|---|---|---|
| committer | Misty De Meo | 2013-08-27 18:31:57 -0700 |
| commit | a39ba39688a912a914fee3f1b052b3261f32bce8 (patch) | |
| tree | 438080e7f38413175c2b103b2ffe9163a4564c70 /Library | |
| parent | 55654933f5ba47926d2fbf98d9aa606a4a86e23a (diff) | |
| download | brew-a39ba39688a912a914fee3f1b052b3261f32bce8.tar.bz2 | |
Revert "superenv: fix cpp shim"
This reverts commit dca89db55189a34f1c02d3f12a84eda8d81fd6d1.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/ENV/4.3/cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 4a626c77a..fd22bb373 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -6,7 +6,6 @@ #TODO create mechanism to specify build effects like %w{-O0 -O4 vanilla-arg-parsing sdk=10.6} etc. require "#{File.dirname __FILE__}/../libsuperenv" -require 'io/wait' require 'set' def cccfg? flags @@ -56,7 +55,8 @@ class Cmd def tool @tool ||= case @arg0 when 'ld' then 'ld' - when 'cc', 'cpp', 'c99', 'c89' + 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 @@ -90,8 +90,7 @@ class Cmd end if nclt? case mode when :cpp - args = %w{-E} + args + cppflags - STDIN.ready? ? args + %w{-} : args + %w{-E} + args + cppflags when :ld ldflags + args when :cc |
