diff --git a/Dockerfile b/Dockerfile index 6a3450d..244077a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,14 +20,31 @@ RUN git clone --depth 1 --branch "$ZLIB_TAG" https://github.com/madler/zlib.git ## Install LLVM ARG LLVM_TAG=llvmorg-17.0.6 RUN git clone --depth 1 --branch "$LLVM_TAG" https://github.com/llvm/llvm-project.git -RUN cmake -G Ninja -S llvm-project/llvm -B build -DCMAKE_BUILD_TYPE=Release \ - -DLLVM_ENABLE_PROJECTS="clang;lld" \ - -DLLVM_TARGETS_TO_BUILD="X86;ARM;NVPTX;AArch64;Mips;Hexagon;WebAssembly" \ +RUN cmake \ + -G Ninja \ + -S llvm-project/llvm \ + -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_BUILD_32_BITS=OFF \ -DLLVM_ENABLE_ASSERTIONS=ON \ + -DLLVM_ENABLE_BINDINGS=OFF \ + -DLLVM_ENABLE_CURL=OFF \ + -DLLVM_ENABLE_DIA_SDK=OFF \ -DLLVM_ENABLE_EH=ON \ + -DLLVM_ENABLE_HTTPLIB=OFF \ + -DLLVM_ENABLE_IDE=OFF \ -DLLVM_ENABLE_LIBXML2=OFF \ + -DLLVM_ENABLE_OCAMLDOC=OFF \ + -DLLVM_ENABLE_PROJECTS="clang;lld" \ -DLLVM_ENABLE_RTTI=ON \ -DLLVM_ENABLE_TERMINFO=OFF \ - -DLLVM_ENABLE_ZSTD=OFF &&\ + -DLLVM_ENABLE_WARNINGS=OFF \ + -DLLVM_ENABLE_ZLIB=ON \ + -DLLVM_ENABLE_ZSTD=OFF \ + -DLLVM_INCLUDE_BENCHMARKS=OFF \ + -DLLVM_INCLUDE_EXAMPLES=OFF \ + -DLLVM_INCLUDE_TESTS=OFF \ + -DLLVM_TARGETS_TO_BUILD="X86;ARM;NVPTX;AArch64;Hexagon;PowerPC;WebAssembly" \ + && \ cmake --build build --target install && \ rm -rf llvm-project build diff --git a/build-images.sh b/build-images.sh index 63e0f32..9a8cee0 100755 --- a/build-images.sh +++ b/build-images.sh @@ -12,5 +12,4 @@ build_image() { } build_image x86_64 -# build_image i686 build_image aarch64