Skip to content

Instantly share code, notes, and snippets.

@glandium
Created August 16, 2022 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glandium/6c130dee608f9585b425c4a40a084d27 to your computer and use it in GitHub Desktop.
Save glandium/6c130dee608f9585b425c4a40a084d27 to your computer and use it in GitHub Desktop.
FROM debian:testing-20220801
RUN echo deb http://snapshot.debian.org/archive/debian/20220801T205040Z/ testing main > /etc/apt/sources.list ;\
apt-get -o Acquire::Check-Valid-Until=false update; \
apt-get install -y build-essential git cmake ninja-build libc6-dev-i386 python3; \
git clone https://github.com/llvm/llvm-project; \
cd llvm-project; \
git checkout 311f7839602344ca347816146edb68c0ffaaa060; \
cmake llvm -B obj -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/llvm/stage1 -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi"; \
ninja -C obj install; \
cmake llvm -B obj2 -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -DCMAKE_C_COMPILER=/tmp/llvm/stage1/bin/clang 2>&1 | grep ZLIB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment