--sysroot should be passed on to the linker #31180
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
The linker needs to be passed the --sysroot option so it can find libraries when cross compiling.
I tried simply modifying rustc to pass the option on to the linker, but --sysroot is used during the bootstrap of rustc without an actual sysroot (i.e. there is only rust libraries, not C, so linking will fail).
The text was updated successfully, but these errors were encountered: