We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a3db0 commit d0ab04aCopy full SHA for d0ab04a
tests/testsuite/standard_lib.rs
@@ -90,18 +90,7 @@ fn setup() -> Option<Setup> {
90
fn main() {
91
let mut args = env::args().skip(1).collect::<Vec<_>>();
92
93
- let crates = [
94
- "alloc",
95
- "compiler_builtins",
96
- "core",
97
- "panic_unwind",
98
- "proc_macro",
99
- "std",
100
- "test",
101
- ];
102
- let is_sysroot_crate = args.iter()
103
- .any(|a| a.starts_with("rustc_std_workspace") || crates.iter().any(|b| a == b));
104
-
+ let is_sysroot_crate = env::var_os("RUSTC_BOOTSTRAP").is_some();
105
if is_sysroot_crate {
106
let arg = args.iter().position(|a| a == "--sysroot").unwrap();
107
args[arg + 1] = env::var("REAL_SYSROOT").unwrap();
0 commit comments