aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorShaun Jackman2017-08-09 12:44:41 -0700
committerShaun Jackman2017-08-09 12:44:41 -0700
commit88bf6abd102ba7da0d9ccdc4564ced66a896cfb6 (patch)
tree79ddc502b9295659f898e5dd5f8d75909a11fe9d /Library
parent0933686dea7f65043480f8f7d6a1ceb05bf83238 (diff)
downloadbrew-88bf6abd102ba7da0d9ccdc4564ced66a896cfb6.tar.bz2
shims/super/cc: Fix c++ -xc++-header
Compiling a precompiled header should be mode :cxx rather than :cxxld.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/shims/super/cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc
index d894d3d69..afe72156f 100755
--- a/Library/Homebrew/shims/super/cc
+++ b/Library/Homebrew/shims/super/cc
@@ -43,6 +43,8 @@ class Cmd
else
:cc
end
+ elsif @args.include?("-xc++-header") || @args.each_cons(2).include?(["-x", "c++-header"])
+ :cxx
elsif @args.include? "-E"
:ccE
else