diff options
author | fanquake <fanquake@gmail.com> | 2023-03-30 10:39:58 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-04-10 10:57:05 +0100 |
commit | 676671527f08ef8113af3661de73db583f6ea9e2 (patch) | |
tree | 0e2a2d0895842279f934322d89f8768fdc5216e9 /ci/test/01_base_install.sh | |
parent | d544d03ba6c7ed3c5879c8bc1108f45d0aac2798 (diff) |
test: LLVM/Clang 16 for MSAN jobs
Sync up with other CI infra.
Diffstat (limited to 'ci/test/01_base_install.sh')
-rwxr-xr-x | ci/test/01_base_install.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ci/test/01_base_install.sh b/ci/test/01_base_install.sh index bc1f2bb915..67dd013f6f 100755 --- a/ci/test/01_base_install.sh +++ b/ci/test/01_base_install.sh @@ -48,12 +48,11 @@ if [ -n "$PIP_PACKAGES" ]; then fi if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then - update-alternatives --install /usr/bin/clang++ clang++ "$(which clang++-12)" 100 - update-alternatives --install /usr/bin/clang clang "$(which clang-12)" 100 - mkdir -p "${BASE_SCRATCH_DIR}"/msan/build/ - git clone --depth=1 https://github.com/llvm/llvm-project -b llvmorg-12.0.0 "${BASE_SCRATCH_DIR}"/msan/llvm-project - cd "${BASE_SCRATCH_DIR}"/msan/build/ && cmake -DLLVM_ENABLE_PROJECTS='libcxx;libcxxabi' -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_SANITIZER=MemoryWithOrigins -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_TARGETS_TO_BUILD=X86 ../llvm-project/llvm/ - cd "${BASE_SCRATCH_DIR}"/msan/build/ && make "$MAKEJOBS" cxx + update-alternatives --install /usr/bin/clang++ clang++ "$(which clang++-16)" 100 + update-alternatives --install /usr/bin/clang clang "$(which clang-16)" 100 + git clone --depth=1 https://github.com/llvm/llvm-project -b llvmorg-16.0.1 "${BASE_SCRATCH_DIR}"/msan/llvm-project + cmake -B "${BASE_SCRATCH_DIR}"/msan/build/ -DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi' -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_SANITIZER=MemoryWithOrigins -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF -S "${BASE_SCRATCH_DIR}"/msan/llvm-project/runtimes + make -C "${BASE_SCRATCH_DIR}"/msan/build/ "$MAKEJOBS" fi if [[ "${RUN_TIDY}" == "true" ]]; then |