Skip to content

Commit d783b1d

Browse files
committed
CI: rfl: switch to a stage 2 build
Apparently tools like `rustfmt` require it in order to find the right `librustc_driver.so` without extra tweaks. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 992dd0b commit d783b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ci/docker/scripts/rfl-build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -euo pipefail
55
LINUX_VERSION=4c7864e81d8bbd51036dacf92fb0a400e13aaeee
66

77
# Build rustc, rustdoc and cargo
8-
../x.py build --stage 1 library rustdoc
8+
../x.py build --stage 2 library rustdoc
99
../x.py build --stage 0 cargo
1010

1111
# Install rustup so that we can use the built toolchain easily, and also
@@ -16,7 +16,7 @@ sh rustup.sh -y --default-toolchain none
1616
source /cargo/env
1717

1818
BUILD_DIR=$(realpath ./build)
19-
rustup toolchain link local "${BUILD_DIR}"/x86_64-unknown-linux-gnu/stage1
19+
rustup toolchain link local "${BUILD_DIR}"/x86_64-unknown-linux-gnu/stage2
2020
rustup default local
2121

2222
mkdir -p rfl

0 commit comments

Comments
 (0)