fix(ci): Update libc++ install script
This commit is contained in:
parent
b692fb4a54
commit
1d53e7f454
@ -10,7 +10,10 @@ if [ "${CXX:0:7}" = "clang++" ]; then
|
|||||||
export CXX="clang++-3.8"
|
export CXX="clang++-3.8"
|
||||||
export CC="clang-3.8"
|
export CC="clang-3.8"
|
||||||
export CXXFLAGS="${CXXFLAGS} -Qunused-arguments"
|
export CXXFLAGS="${CXXFLAGS} -Qunused-arguments"
|
||||||
elif [ "${CXX}" = "g++" ]; then
|
elif [ "${CXX:0:3}" = "g++" ]; then
|
||||||
|
export CXX="g++-5"
|
||||||
|
export CC="gcc-5"
|
||||||
|
elif [ "${CXX:0:3}" = "gcc" ]; then
|
||||||
export CXX="g++-5"
|
export CXX="g++-5"
|
||||||
export CC="gcc-5"
|
export CC="gcc-5"
|
||||||
fi
|
fi
|
||||||
|
@ -7,16 +7,12 @@ if [ "${CXX:0:7}" = "clang++" ]; then
|
|||||||
travis_retry wget --quiet -O - "${LIBCXX_URL}" | tar --strip-components=1 -xJ -C "${LLVM_ROOT}/projects/libcxx"
|
travis_retry wget --quiet -O - "${LIBCXX_URL}" | tar --strip-components=1 -xJ -C "${LLVM_ROOT}/projects/libcxx"
|
||||||
travis_retry wget --quiet -O - "${LIBCXXABI_URL}" | tar --strip-components=1 -xJ -C "${LLVM_ROOT}/projects/libcxxabi"
|
travis_retry wget --quiet -O - "${LIBCXXABI_URL}" | tar --strip-components=1 -xJ -C "${LLVM_ROOT}/projects/libcxxabi"
|
||||||
|
|
||||||
(cd "${LLVM_ROOT}/build" && cmake .. -DCMAKE_CXX_COMPILER=clang++ && make cxxabi cxx -j2)
|
(cd "${LLVM_ROOT}/build" && cmake .. -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_C_COMPILER="$CC" -DCMAKE_INSTALL_PREFIX="${LLVM_ROOT}/install" -DCMAKE_BUILD_TYPE=$BUILD_TYPE)
|
||||||
(cd "${LLVM_ROOT}/build/projects/libcxx" && make install)
|
(cd "${LLVM_ROOT}/build/projects/libcxx" && make install)
|
||||||
(cd "${LLVM_ROOT}/build/projects/libcxxabi" && make install)
|
(cd "${LLVM_ROOT}/build/projects/libcxxabi" && make install)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export CXXFLAGS="${CXXFLAGS} -I${LLVM_ROOT}/install/include"
|
export CXXFLAGS="${CXXFLAGS} -I ${LLVM_ROOT}/install/include/c++/v1"
|
||||||
export CXXFLAGS="${CXXFLAGS} -I${LLVM_ROOT}/install/include/c++/v1"
|
export LDFLAGS="${LDFLAGS} -L ${LLVM_ROOT}/install/lib -lc++ -lc++abi"
|
||||||
export CXXFLAGS="${CXXFLAGS} -stdlib=libc++"
|
|
||||||
export LDFLAGS="${LDFLAGS} -L${LLVM_ROOT}/install/lib"
|
|
||||||
export LDFLAGS="${LDFLAGS} -lc++"
|
|
||||||
export LDFLAGS="${LDFLAGS} -lc++abi"
|
|
||||||
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LLVM_ROOT}/install/lib"
|
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LLVM_ROOT}/install/lib"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user