-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reenable msan sanitizer workflow (#1589)
- Loading branch information
Showing
2 changed files
with
29 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# Checkout LLVM sources | ||
#git clone --depth=1 https://github.com/llvm/llvm-project.git llvm-project | ||
# | ||
git clone --depth=1 https://github.com/llvm/llvm-project.git llvm-project | ||
|
||
## Setup libc++ options | ||
#if [ -z "$BUILD_32_BITS" ]; then | ||
# export BUILD_32_BITS=OFF && echo disabling 32 bit build | ||
#fi | ||
# | ||
## Build and install libc++ (Use unstable ABI for better sanitizer coverage) | ||
#cd ./llvm-project | ||
#cmake -DCMAKE_C_COMPILER=${CC} \ | ||
# -DCMAKE_CXX_COMPILER=${CXX} \ | ||
# -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
# -DCMAKE_INSTALL_PREFIX=/usr \ | ||
# -DLIBCXX_ABI_UNSTABLE=OFF \ | ||
# -DLLVM_USE_SANITIZER=${LIBCXX_SANITIZER} \ | ||
# -DLLVM_BUILD_32_BITS=${BUILD_32_BITS} \ | ||
# -DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi' \ | ||
# -S llvm -B llvm-build -G "Unix Makefiles" | ||
#make -C llvm-build -j3 cxx cxxabi | ||
#sudo make -C llvm-build install-cxx install-cxxabi | ||
#cd .. | ||
if [ -z "$BUILD_32_BITS" ]; then | ||
export BUILD_32_BITS=OFF && echo disabling 32 bit build | ||
fi | ||
|
||
sudo apt update | ||
sudo apt -y install libc++-dev libc++abi-dev | ||
## Build and install libc++ (Use unstable ABI for better sanitizer coverage) | ||
mkdir llvm-build && cd llvm-build | ||
cmake -DCMAKE_C_COMPILER=${CC} \ | ||
-DCMAKE_CXX_COMPILER=${CXX} \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DCMAKE_INSTALL_PREFIX=/usr \ | ||
-DLIBCXX_ABI_UNSTABLE=OFF \ | ||
-DLLVM_USE_SANITIZER=${LIBCXX_SANITIZER} \ | ||
-DLLVM_BUILD_32_BITS=${BUILD_32_BITS} \ | ||
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libunwind' \ | ||
-G "Unix Makefiles" \ | ||
../llvm-project/runtimes/ | ||
make -j cxx cxxabi unwind | ||
cd .. |
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