Re: [PATCH] rust: Suppress searching builtin sysroot

Miguel Ojeda
2023-12-13T18:45:37Z

On Tue, Oct 31, 2023 at 9:18 PM Matthew Maurer <mmaurer@google.com> wrote:
>
> By default, if Rust is passed `--target=foo` rather than a target.json
> file, it will infer a default sysroot if that component is installed. As
> the proposed aarch64 support uses `aarch64-unknown-none` rather than a
> target.json file, this is needed to prevent rustc from being confused
> between the custom kernel sysroot and the pre-installed one.
>
> Signed-off-by: Matthew Maurer <mmaurer@google.com>

Applied to `rust-next`. I added Boqun's fix for `rusttest` as well as
a fix for `rustdoc` (which requires a conditional for host crates like
`macros`); and added a couple `Links` to the arm64 discussions.

I would appreciate extra testing for this one (please use `rust-next`
commits in that case).

Thanks everyone!

Cheers,
Miguel