Skip to content

Commit

Permalink
memory sanitizer requires -fPIE for compilation and -pie for linking
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Mar 21, 2024
1 parent 2bac234 commit ab799da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/test_travis.sh
Expand Up @@ -19,7 +19,7 @@ if [[ "${WITH_SANITIZE}" != "" ]]; then
export CC=clang-15
export CXX=clang++-15
which $CXX
cmake_line="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
cmake_line="-DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_POSITION_INDEPENDENT_CODE=ON"
LIBCXX_15_MSAN_ROOT=/opt/libcxx-15-msan
# export PATH="/usr/lib/llvm-15/bin:$PATH" # llvm-config
curl -Ls https://github.com/llvm/llvm-project/archive/llvmorg-${LLVM_ORG_VER}.tar.gz | tar xz -C /tmp
Expand Down

0 comments on commit ab799da

Please sign in to comment.