Skip to content

Commit 548e170

Browse files
committed
rust-1.88: set rust.lld to false to fix FTBFS
Upstream have changed to no longer unconditionally build LLD in bootstrap, instead only building it if a system LLVM was not in use. The defaults were not updated before 1.88 was released to reflect this, however, so the boostrap will still expect `rust-lld` to have been built. This change is recommended by upstream in rust-lang/rust#143076 (comment) See also rust-lang/rust#143255 which will fix this for post-1.88 releases (which shouldn't matter for us, as we'll still have this configuration change in place).
1 parent 365680e commit 548e170

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rust-1.88.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ pipeline:
9292
--set="target.${ARCH}.musl-root=/usr" \
9393
--set="target.${ARCH}.crt-static=false"
9494
95+
# Configure the bootstrap process not to use Rust's LLD (as we use our
96+
# system LLVM); see
97+
# https://github.com/rust-lang/rust/issues/143076#issuecomment-3018803649
98+
sed -i '/^\[rust\]$/a lld=false' bootstrap.toml
99+
95100
- runs: |
96101
cd rustc-${{package.version}}-src
97102
sed 's|deny(warnings,|deny(|' -i src/bootstrap/src/lib.rs

0 commit comments

Comments
 (0)