diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-13 14:58:21 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-13 14:58:21 +0000 |
commit | ed2f65675442974f424077c322134f9bbe64719e (patch) | |
tree | e993941590935ecf73f13b118d7d8a07f2bc8773 | |
parent | 83f5e31a3d82bb2fe5f1a320d6fb3d8244a04143 (diff) | |
download | chromium_src-ed2f65675442974f424077c322134f9bbe64719e.zip chromium_src-ed2f65675442974f424077c322134f9bbe64719e.tar.gz chromium_src-ed2f65675442974f424077c322134f9bbe64719e.tar.bz2 |
Bundle libc++ headers with clang.
That way, -stdlib=libc++ works better, at least on OS X.
BUG=371034
TEST=`echo '#include <vector>" > test.cc ; bin/clang -c test.cc -stdlib=libc++ -isysroot $(xcrun -show-sdk-path)`
no longer complains about not finding the vector header on OS X.
NOTRY=true
Review URL: https://codereview.chromium.org/281753002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270095 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-x | tools/clang/scripts/package.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/clang/scripts/package.sh b/tools/clang/scripts/package.sh index 2b23808..0c76601 100755 --- a/tools/clang/scripts/package.sh +++ b/tools/clang/scripts/package.sh @@ -105,6 +105,10 @@ if [ "$(uname -s)" = "Darwin" ]; then (cd $PDIR/bin && ln -sf libc++.1.dylib libc++.dylib) fi +# Copy libc++ headers. +mkdir $PDIR/include +cp -R "${LLVM_BOOTSTRAP_INSTALL_DIR}/include/c++" $PDIR/include + # Copy plugins. Some of the dylibs are pretty big, so copy only the ones we # care about. cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib |