Skip to content

Commit

Permalink
Fix paths for rustup hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
hegza committed Feb 3, 2024
1 parent 4c018cb commit ee84fb6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ COPY config.toml .
# Build the Rust compiler
RUN ./x build library

WORKDIR /root/

# Install rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

# Hook the new compiler into rustup
RUN \
rustup toolchain link rve-stage0 build/host/stage0-sysroot # beta compiler + stage0 std && \
rustup toolchain link rve-stage1 build/host/stage1 && \
rustup toolchain link rve build/host/stage2 && \
rustup toolchain link rve-stage0 /root/rust/build/host/stage0-sysroot # beta compiler + stage0 std && \
rustup toolchain link rve-stage1 /root/rust/build/host/stage1 && \
rustup toolchain link rve /root/rust/build/host/stage2 && \
rustup default rve

0 comments on commit ee84fb6

Please sign in to comment.