You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside empty sysroot, is the rustlib load-bearing?
Summary:
This code is from {D54130104}.
Prior to that, we had been using an entirely empty directory since {D34351072}.
Ensuring a `lib/rustlib/{target}/lib` subdirectory present in the directory given to `--sysroot` used to be necessary because rustc would pass `-L{sysroot}/lib/rustlib/{target}/lib` to the linker, which would cause some linkers (`ld64`) to error out if nonexistent.
Since [rust-lang/rust#128370](rust-lang/rust#128370) in Rust 1.82, rustc no longer passes that, so we no longer need to create the subdirectory.
> **linker: Pass fewer search directories to the linker**
> ...
> The main sysroot library directory shouldn't generally be passed because it shouldn't contain native libraries, except for one case which is now marked with a FIXME.
Reviewed By: capickett, JakobDegen
Differential Revision: D72823498
fbshipit-source-id: 4343ab0fa4c19a168574b57d6eed8df23630af1d
0 commit comments