diff options
| author | Xiyue Deng | 2013-10-24 00:26:09 -0700 |
|---|---|---|
| committer | Xiyue Deng | 2013-10-26 22:17:04 -0700 |
| commit | 15e5fe43845c3b5619c66269e9c60cd984a75080 (patch) | |
| tree | e189b37090fe7fbb44e39cfcb0275dbcd743cd09 /Library/ENV | |
| parent | f2132c47bd26484e8a9961ad6056bbbb17a2d108 (diff) | |
| download | brew-15e5fe43845c3b5619c66269e9c60cd984a75080.tar.bz2 | |
Clang standard library selection.
* Add new ENV function for selecting stdlib for Clang.
- The selection is no-op for non-system-clang compilers.
- Both superenv and stdenv are handled.
* Add new HOMEBREW_CCCFG flag and ccwrapper handling.
Diffstat (limited to 'Library/ENV')
| -rwxr-xr-x | Library/ENV/4.3/cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 102f6c64e..e8e586da4 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -161,6 +161,7 @@ class Cmd if mode == :cxx args << '-std=c++11' if cccfg? 'x' args << '-stdlib=libc++' if cccfg? 'g' + args << '-stdlib=libstdc++' if cccfg? 'h' end return args unless cccfg? 'O' @@ -216,6 +217,7 @@ class Cmd when :cxxld args << '-Wl,-headerpad_max_install_names' args << '-stdlib=libc++' if cccfg? 'g' + args << '-stdlib=libstdc++' if cccfg? 'h' end args end |
