Created
July 29, 2014 22:34
-
-
Save jimporter/05ec7ff4118a116ff2af to your computer and use it in GitHub Desktop.
Build libc++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
SRC_DIR=$HOME/src/libcxx | |
BUILD_DIR=$HOME/src/build-libcxx | |
INSTALL_DIR=/usr | |
svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk $SRC_DIR | |
mkdir $BUILD_DIR | |
cd $BUILD_DIR | |
CC=clang CXX=clang++ cmake -G "Unix Makefiles" -DLIBCXX_CXX_ABI=libsupc++ -DLIBCXX_LIBSUPCXX_INCLUDE_PATHS="/usr/include/c++/4.8/;/usr/include/x86_64-linux-gnu/c++/4.8/" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR $SRC_DIR && \ | |
make && \ | |
make install | |
cd .. | |
rm -rf $BUILD_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment