diff options
author | Matthew Maurer <[email protected]> | 2023-10-31 20:10:14 +0000 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2023-12-14 20:14:01 +0100 |
commit | 71479eee9da8ddb53f3ddb91bc8591d90fb8b142 (patch) | |
tree | d4a9aec9214b59feee290bd9cb0b8f403bc01775 /rust/alloc/vec/mod.rs | |
parent | 88c2e1169f5f0c2ccdd0a001e4447a1b0da2b661 (diff) |
rust: Suppress searching builtin sysroot
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 [1] uses `aarch64-unknown-none` rather than a
target.json file, this is needed [2] to prevent rustc from being confused
between the custom kernel sysroot and the pre-installed one.
[ Miguel: Applied Boqun's extra case (for `rusttest`) and reworded to add
links to the arm64 patch series discussion. In addition, fixed the
`rustdoc` target too (which requires a conditional since `cmd_rustdoc`
is also used for host crates like `macros`). ]
Signed-off-by: Matthew Maurer <[email protected]>
Tested-by: Boqun Feng <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Link: https://lore.kernel.org/rust-for-linux/[email protected]/ [1]
Link: https://lore.kernel.org/rust-for-linux/CAGSQo01pOixiPXkW867h4vPUaAjtKtHGKhkV-rpifJvKxAf4Ww@mail.gmail.com/ [2]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/alloc/vec/mod.rs')
0 files changed, 0 insertions, 0 deletions