diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-01 11:31:12 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-03 07:52:01 +0100 |
| commit | 7ac7b4c285d3130af463ce27584e2a4c08abf500 (patch) | |
| tree | 1b735a6a04e4acd96c45a44c59b974f1080c4608 /src/bootstrap | |
| parent | 3a9bc76f809634b0ae9844147766818a1bdcd32b (diff) | |
./x miri: fix sysroot build
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/build_steps/test.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs index 4fa91c1a571..161157acffe 100644 --- a/src/bootstrap/src/core/build_steps/test.rs +++ b/src/bootstrap/src/core/build_steps/test.rs @@ -2756,6 +2756,10 @@ impl Step for Crate { // `lib.rs` file, and a `lib.miri.rs` file exists in the same folder, we build that // instead. But crucially we only do that for the library, not the test builds. cargo.env("MIRI_REPLACE_LIBRS_IF_NOT_TEST", "1"); + // std needs to be built with `-Zforce-unstable-if-unmarked`. For some reason the builder + // does not set this directly, but relies on the rustc wrapper to set it, and we are not using + // the wrapper -- hence we have to set it ourselves. + cargo.rustflag("-Zforce-unstable-if-unmarked"); cargo } else { // Also prepare a sysroot for the target. |
