File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -50,22 +50,27 @@ ENV DEPS_DIR="/home/user/c-semantics-deps"
5050# Install rust. #
5151# ################
5252
53+ ENV PATH="/home/user/.cargo/bin:${PATH}"
54+
5355COPY --chown=user:user ./.build/k/ ${DEPS_DIR}/k
5456
5557RUN cd ${DEPS_DIR}/k/llvm-backend/src/main/native \
56- && ./llvm-backend/install-rust
58+ && llvm-backend/install-rust \
59+ && mkdir llvm-backend/build \
60+ && cd llvm-backend/build \
61+ && cmake .. -DCMAKE_BUILD_TYPE=Debug \
62+ && make -j`nproc` \
63+ && make install
5764
5865# ###########
5966# Build K. #
6067# ###########
6168
62- RUN . /home/user/.cargo/env \
63- && cd ${DEPS_DIR}/k \
69+ RUN cd ${DEPS_DIR}/k \
6470 && mvn package -X -q -U \
6571 -DskipTests -DskipKTest \
6672 -Dhaskell.backend.skip \
6773 -Dcheckstyle.skip \
6874 -Dproject.build.type=FastBuild
6975
70-
7176ENV K_BIN="${DEPS_DIR}/k/k-distribution/target/release/k/bin"
You can’t perform that action at this time.
0 commit comments