File tree Expand file tree Collapse file tree 2 files changed +17
-28
lines changed Expand file tree Collapse file tree 2 files changed +17
-28
lines changed Original file line number Diff line number Diff line change 1+ FROM archlinux:latest
2+
3+ RUN pacman -Syu --noconfirm && \
4+ pacman -S --noconfirm base-devel clang libc++ cmake ninja git vim
5+
6+ ENV CXX=clang++
7+ ENV CC=clang
8+
9+ RUN git clone --depth=1 https://github.com/llvm/llvm-project && \
10+ cd llvm-project && \
11+ mkdir build; \
12+ cmake -G Ninja -S runtimes -B build -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" -DLLVM_USE_SANITIZER=MemoryWithOrigins -DCMAKE_INSTALL_PREFIX=/opt && \
13+ ninja -C build cxx cxxabi && \
14+ ninja -C build install-cxx install-cxxabi
15+
16+ ENV MSAN_CFLAGS="-std=c++20 -fsanitize=memory -nostdinc++ -I/opt/include -I/opt/include/c++/v1"
17+ ENV MSAN_LFLAGS="-fsanitize=memory -stdlib=libc++ -L/opt/lib -lc++abi -Wl,-rpath,/opt/lib"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments