1
1
#! /usr/bin/env bash
2
2
#
3
- # Copyright (c) 2018-2022 The Bitcoin Core developers
3
+ # Copyright (c) 2018-present The Bitcoin Core developers
4
4
# Distributed under the MIT software license, see the accompanying
5
5
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
6
@@ -36,7 +36,7 @@ if [ -n "$PIP_PACKAGES" ]; then
36
36
fi
37
37
38
38
if [[ ${USE_MEMORY_SANITIZER} == " true" ]]; then
39
- ${CI_RETRY_EXE} git clone --depth=1 https://github.com/llvm/llvm-project -b llvmorg-17.0.6 /msan/llvm-project
39
+ ${CI_RETRY_EXE} git clone --depth=1 https://github.com/llvm/llvm-project -b " llvmorg-18.1.1 " /msan/llvm-project
40
40
41
41
cmake -G Ninja -B /msan/clang_build/ \
42
42
-DLLVM_ENABLE_PROJECTS=" clang" \
@@ -53,13 +53,14 @@ if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then
53
53
update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /msan/clang_build/bin/llvm-symbolizer 100
54
54
55
55
cmake -G Ninja -B /msan/cxx_build/ \
56
- -DLLVM_ENABLE_RUNTIMES=' libcxx;libcxxabi' \
56
+ -DLLVM_ENABLE_RUNTIMES=" libcxx;libcxxabi;libunwind " \
57
57
-DCMAKE_BUILD_TYPE=Release \
58
58
-DLLVM_USE_SANITIZER=MemoryWithOrigins \
59
59
-DCMAKE_C_COMPILER=clang \
60
60
-DCMAKE_CXX_COMPILER=clang++ \
61
61
-DLLVM_TARGETS_TO_BUILD=Native \
62
62
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
63
+ -DLIBCXXABI_USE_LLVM_UNWINDER=OFF \
63
64
-DLIBCXX_HARDENING_MODE=debug \
64
65
-S /msan/llvm-project/runtimes
65
66
0 commit comments