aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-08-12 12:42:26 +0100
committerGitHub2017-08-12 12:42:26 +0100
commita1e3c54bc89bd7b33e1f6aa76544c9bd4364be86 (patch)
treeea1f90ef356f035a77f441d3525a06c9e322a90e /Library/Homebrew
parentd6d681ca01f8acf6b8d5e66cc1ca67310e9b8913 (diff)
parent88bf6abd102ba7da0d9ccdc4564ced66a896cfb6 (diff)
downloadbrew-a1e3c54bc89bd7b33e1f6aa76544c9bd4364be86.tar.bz2
Merge pull request #3034 from sjackman/superenv-cxxheader
shims/super/cc: Fix c++ -xc++-header
Diffstat (limited to 'Library/Homebrew')
-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