Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanLiviuVarzaru committed Sep 12, 2024
1 parent 5f254ba commit 9e4a107
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ci_build_images/msan.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENV PATH=$MSAN_LIBDIR/bin:$PATH

# hadolint ignore=SC2046
RUN . /etc/os-release \
if [ "${CLANG_VERSION}" -gt 17 ]; then \
&& if [ "${CLANG_VERSION}" -gt 17 ]; then \
export LLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind"; \
else \
export LLVM_ENABLE_RUNTIMES="libcxx;libcxxabi"; fi \
Expand Down
6 changes: 3 additions & 3 deletions ci_build_images/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ ENV MSAN_LIBDIR=/msan-libs
ENV MSAN_SYMBOLIZER_PATH=/msan-libs/bin/llvm-symbolizer-msan

RUN if [ "${CLANG_VERSION}" -gt 17 ]; then \
export LLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind"; \
export LLVM_ENABLE_RUNTIMES='"libcxx;libcxxabi;libunwind"''; \
else \
export LLVM_ENABLE_RUNTIMES="libcxx;libcxxabi"; \
export LLVM_ENABLE_RUNTIMES='"libcxx;libcxxabi"''; \
fi \
&& echo "LLVM_ENABLE_RUNTIMES=${LLVM_ENABLE_RUNTIMES}" >> /etc/environment

Expand Down Expand Up @@ -151,7 +151,7 @@ RUN . /etc/environment \
-DCMAKE_C_COMPILER=clang-${CLANG_VERSION} \
-DCMAKE_CXX_COMPILER=clang++-${CLANG_VERSION} \
-DLLVM_ENABLE_RUNTIMES="${LLVM_ENABLE_RUNTIMES}" \
$(if [ "${CLANG_VERSION}" = 19 ]; then echo '-DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_ENABLE_SPHINX=OFF'; fi) \
$(if [ "${CLANG_VERSION}" = 19 ]; then echo "-DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_ENABLE_SPHINX=OFF"; fi) \
-DLLVM_USE_SANITIZER=MemoryWithOrigins \
&& make -C build -j "$(nproc)" \
&& cp -aL build/lib/libc++.so* $MSAN_LIBDIR \
Expand Down

0 comments on commit 9e4a107

Please sign in to comment.