diff options
| author | Shaun Jackman | 2017-08-09 12:44:41 -0700 |
|---|---|---|
| committer | Shaun Jackman | 2017-08-09 12:44:41 -0700 |
| commit | 88bf6abd102ba7da0d9ccdc4564ced66a896cfb6 (patch) | |
| tree | 79ddc502b9295659f898e5dd5f8d75909a11fe9d | |
| parent | 0933686dea7f65043480f8f7d6a1ceb05bf83238 (diff) | |
| download | brew-88bf6abd102ba7da0d9ccdc4564ced66a896cfb6.tar.bz2 | |
shims/super/cc: Fix c++ -xc++-header
Compiling a precompiled header should be mode :cxx rather than :cxxld.
| -rwxr-xr-x | Library/Homebrew/shims/super/cc | 2 |
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 |
