Skip to content

Commit

Permalink
add DLLVM_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanLiviuVarzaru committed Sep 9, 2024
1 parent dd611d7 commit 4d4e259
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci_build_images/msan.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ ENV PATH=$MSAN_LIBDIR/bin:$PATH
# && apt-get update \
# && apt-get -y install --no-install-recommends -t bookworm-backports cmake=3.25.1-1~bpo11+1

ENV LLVM_DIR=/usr/lib/llvm-19/lib/cmake/llvm

RUN mkdir $MSAN_LIBDIR \
&& mkdir $MSAN_LIBDIR/bin \
&& printf "#!/bin/sh\nunset LD_LIBRARY_PATH\nexec llvm-symbolizer-%s \"\$@\"" "${CLANG_VERSION}" > $MSAN_SYMBOLIZER_PATH \
Expand All @@ -41,6 +43,7 @@ RUN mkdir $MSAN_LIBDIR \
-S runtimes \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_DIR=$LLVM_DIR \
-DCMAKE_C_COMPILER=clang-${CLANG_VERSION} \
-DCMAKE_CXX_COMPILER=clang++-${CLANG_VERSION} \
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" \
Expand Down

0 comments on commit 4d4e259

Please sign in to comment.