diff options
Diffstat (limited to 'external/semver/install_libcxx.sh')
-rw-r--r-- | external/semver/install_libcxx.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/external/semver/install_libcxx.sh b/external/semver/install_libcxx.sh new file mode 100644 index 0000000..dbdb579 --- /dev/null +++ b/external/semver/install_libcxx.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# +# Install libc++ under travis +# Copied from https://github.com/ericniebler/range-v3 + +svn --quiet co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx +mkdir libcxx/build +(cd libcxx/build && cmake .. -DLIBCXX_CXX_ABI=libstdc++ -DLIBCXX_CXX_ABI_INCLUDE_PATHS="/usr/include/c++/4.6;/usr/include/c++/4.6/x86_64-linux-gnu") +make -C libcxx/build cxx -j2 +sudo cp libcxx/build/lib/libc++.so.1.0 /usr/lib/ +sudo cp -r libcxx/build/include/c++/v1 /usr/include/c++/v1/ +sudo ln -sf /usr/lib/libc++.so.1.0 /usr/lib/libc++.so +sudo ln -sf /usr/lib/libc++.so.1.0 /usr/lib/libc++.so.1 |