Closed
Description
Currently, the beta binaries are only present in build/stage0/bin
; build/stage0-sysroot
has only the standard library, not any binaries. That causes two issues:
rustup toolchain link
doesn't work with stage0-sysroot, meaning there's no way to change the standard library and use those changes at runtime without doing a full stage 1 buildx dist --stage 0
doesn't work. This is very rare to want to do, but can be useful when modifying thedist
process itself, to avoid long compile times.
thread 'main' panicked at 'could not read dir "/home/dawn/projects/rust/build/x86_64-unknown-linux-gnu/stage0-sysroot/bin": Os { code: 2, kind: NotFound, message: "No such file or directory" }', lib.rs:1573:25
Copying the binaries into stage0-sysroot is an easy way to fix both problems at once.
Mentoring instructions: Add a builder.copy
call in impl Step for Sysroot
Line 1146 in 6f0c4a6
bin
directory from build/stage0
.
Metadata
Metadata
Assignees
Labels
Area: Makes things more difficult for new or seasoned contributors to RustCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)