aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-08-31 10:43:23 -0500
committerJack Nagel2013-08-31 10:43:24 -0500
commita6f24c6b4270bcb37e4e857f7b7afef8a87cb039 (patch)
treec5e423800296ad604a72b8fd4b35bb0408588068 /Library
parentbbf76ac38898cdb61c4bd1056bf1e58d2c7ad82e (diff)
downloadhomebrew-a6f24c6b4270bcb37e4e857f7b7afef8a87cb039.tar.bz2
Differentiate between "cpp" and "cc-E" modes
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 34d007323..a8afc4485 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -47,7 +47,7 @@ class Cmd
elsif @args.include? '-c'
:cc
elsif @args.include? '-E'
- :cpp
+ :ccE
else
:ccld
end
@@ -93,8 +93,10 @@ class Cmd
cflags + args + cppflags + ldflags
when :cc
cflags + args + cppflags
- when :cpp
+ when :ccE
%w{-E} + args + cppflags
+ when :cpp
+ args + cppflags
when :ld
ldflags + args
end.compact