Skip to content

Commit

Permalink
put back libc++ compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sytelus committed Jul 26, 2017
1 parent 6c413e6 commit 1972084
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,48 @@ pushd "$SCRIPT_DIR" >/dev/null
#get sub modules
git submodule update --init --recursive

#TODO: below is probably not needed any longer
sudo apt-get install -y build-essential

# get clang, libc++
sudo rm -rf llvm-build
# for other OS, please see http://releases.llvm.org/download.html#3.9.1
wget http://releases.llvm.org/3.9.1/clang+llvm-3.9.1-x86_64-linux-gnu-ubuntu-16.04.tar.xz
mkdir -p llvm-build
tar -xf "clang+llvm-3.9.1-x86_64-linux-gnu-debian8.tar.xz" -C llvm-build
rm "clang+llvm-3.9.1-x86_64-linux-gnu-debian8.tar.xz"
mv ./llvm-build/clang* ./llvm-build/output
# sudo rm -rf llvm-build
# mkdir -p llvm-build/output
# wget "http://releases.llvm.org/4.0.1/clang+llvm-4.0.1-x86_64-linux-gnu-debian8.tar.xz"
# tar -xf "clang+llvm-4.0.1-x86_64-linux-gnu-debian8.tar.xz" -C llvm-build/output
# sudo apt-get install -y build-essential
# wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
# sudo apt-get update
# sudo apt-get install -y clang-4.0 clang++-4.0
# #other packages
# #sudo apt-get install -y clang-3.9-doc libclang-common-3.9-dev libclang-3.9-dev libclang1-3.9 libclang1-3.9-dbg libllvm-3.9-ocaml-dev libllvm3.9 libllvm3.9-dbg lldb-3.9 llvm-3.9 llvm-3.9-dev llvm-3.9-doc llvm-3.9-examples llvm-3.9-runtime clang-format-3.9 python-clang-3.9 libfuzzer-3.9-dev

# #get libc++ source
# if [[ ! -d "llvm-source-40" ]]; then
# git clone --depth=1 -b release_40 https://github.com/llvm-mirror/llvm.git llvm-source-40
# git clone --depth=1 -b release_40 https://github.com/llvm-mirror/libcxx.git llvm-source-40/projects/libcxx
# git clone --depth=1 -b release_40 https://github.com/llvm-mirror/libcxxabi.git llvm-source-40/projects/libcxxabi
# else
# echo "folder llvm-source already exists, skipping git clone..."
# fi

# #build libc++
# sudo rm -rf llvm-build
# mkdir -p llvm-build
# pushd llvm-build >/dev/null

# export C_COMPILER=clang-4.0
# export COMPILER=clang++-4.0

# cmake -DCMAKE_C_COMPILER=${C_COMPILER} -DCMAKE_CXX_COMPILER=${COMPILER} \
# -LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF -DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=OFF \
# -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=./output \
# ../llvm-source-40

# make cxx

# #install libc++ locally in output folder
# sudo make install-cxx install-cxxabi

# popd >/dev/null

#install EIGEN library
sudo rm -rf ./AirLib/deps/eigen3/Eigen
Expand Down

0 comments on commit 1972084

Please sign in to comment.