Skip to content

Commit

Permalink
Changes added to have the llvm build in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbir-sharma committed May 30, 2024
1 parent ab7e48a commit 9d448a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ RUN git clone https://github.com/llvm/llvm-project.git && \
mkdir llvm-project/build && cd llvm-project/build && \
cmake -G Ninja ../llvm \
-DLLVM_ENABLE_PROJECTS="clang;mlir" \
-DLLVM_BUILD_TESTS=ON \
-DLLVM_TARGETS_TO_BUILD="host" \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_RTTI=ON && \
cmake --build . --target clang check-mlir mlir-translate opt llc lli llvm-dis llvm-link -j${NPROC} && \
ninja install -j${NPROC} && \
Expand Down Expand Up @@ -114,3 +114,5 @@ RUN ./setup -LLFI_BUILD_ROOT $(pwd)/build -LLVM_SRC_ROOT $(pwd)/../llvm-project
ENV LLFI_BUILD_ROOT=/home/LLTFI/build
ENV ONNX_MLIR_BUILD=/home/onnx-mlir/build
ENV LD_LIBRARY_PATH=/home/LLTFI/tools/json-c/build

WORKDIR /home/LLTFI

0 comments on commit 9d448a5

Please sign in to comment.