Last active
November 22, 2022 17:52
-
-
Save alepez/ed917c2c884fb5352753e2077be799cd to your computer and use it in GitHub Desktop.
Build clang libcxx libcxxabi instrumented with msan
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
wget https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-14.0.6.tar.gz | |
tar zxf llvmorg-14.0.6.tar.gz | |
cd llvm-project-llvmorg-14.0.6 | |
rm -rf build | |
mkdir -p build | |
cd build | |
cmake \ | |
-G Ninja \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DCMAKE_C_COMPILER=clang \ | |
-DCMAKE_CXX_COMPILER=clang++ \ | |
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \ | |
-DLLVM_EXTERNAL_LIT=/usr/bin/lit \ | |
-DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=NO \ | |
-DLLVM_USE_SANITIZER=MemoryWithOrigins \ | |
../runtimes | |
ninja cxx cxxabi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment