Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson committed Dec 13, 2023
1 parent 9adc371 commit 030746c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
25 changes: 21 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ build_image() {
}

build_image x86_64
# build_image i686
build_image aarch64

0 comments on commit 030746c

Please sign in to comment.