Skip to content

Commit 89afc5c

Browse files
Explicitly pass RUSTC_BOOTSTRAP to running wasmtime
This ensures that tests are permitted to use nightly features, which is currently required for them to run at all.
1 parent c303e76 commit 89afc5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,9 @@ impl Build {
13871387
if let Some(path) = finder.maybe_have("wasmtime") {
13881388
if let Ok(mut path) = path.into_os_string().into_string() {
13891389
path.push_str(" run -C cache=n --dir .");
1390+
// Make sure that tests have access to RUSTC_BOOTSTRAP. This (for example) is
1391+
// required for libtest to work on beta/stable channels.
1392+
path.push_str(" --env RUSTC_BOOTSTRAP");
13901393
return Some(path);
13911394
}
13921395
}

0 commit comments

Comments
 (0)