File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11FROM archlinux:latest
22
33RUN pacman -Syu --noconfirm && \
4- pacman -S --noconfirm base-devel clang libc++ cmake ninja git vim python3
4+ pacman -S --noconfirm base-devel llvm clang libc++ cmake ninja git vim python3
55
66ENV CXX=clang++
77ENV CC=clang
88
9- RUN git clone --depth=1 https://github.com/llvm/llvm-project && \
9+ RUN CLANG_VERSION=$(clang --version | head -n1 | sed 's/.*version \( [0-9.]*\) .*/\1 /' ) && \
10+ git clone --depth=1 --branch llvmorg-${CLANG_VERSION} https://github.com/llvm/llvm-project && \
1011 cd llvm-project && \
1112 mkdir build; \
12- cmake -G Ninja -S runtimes -B build -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" -DLLVM_USE_SANITIZER=MemoryWithOrigins -DCMAKE_INSTALL_PREFIX=/opt && \
13+ cmake -G Ninja -S runtimes -B build \
14+ -DLLVM_ENABLE_RUNTIMES="libunwind;libcxx;libcxxabi" \
15+ -DLLVM_USE_SANITIZER=MemoryWithOrigins \
16+ -DLIBCXXABI_USE_LLVM_UNWINDER=ON \
17+ -DLIBCXX_CXX_ABI=libcxxabi \
18+ -DLIBCXXABI_LIBCXX_INCLUDES=ON \
19+ -DCMAKE_INSTALL_PREFIX=/opt && \
1320 ninja -C build cxx cxxabi && \
1421 ninja -C build install-cxx install-cxxabi
1522
You can’t perform that action at this time.
0 commit comments