diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-09 18:52:28 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-09 18:52:28 +0800 |
| commit | becf664e4930ce59fb01905e4c6af38c2df5382e (patch) | |
| tree | c96b27ab376e8948c670a0b63f3a1582ef787e58 | |
| parent | 4203c686136428ab10e2765a00886b7c2909a477 (diff) | |
| download | rust-becf664e4930ce59fb01905e4c6af38c2df5382e.tar.gz rust-becf664e4930ce59fb01905e4c6af38c2df5382e.zip | |
Match std RUSTFLAGS for host and target for `mir-opt` test
| -rw-r--r-- | src/bootstrap/src/core/build_steps/test.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs index 7a49b68b91e..5bf4f19b3c4 100644 --- a/src/bootstrap/src/core/build_steps/test.rs +++ b/src/bootstrap/src/core/build_steps/test.rs @@ -1697,7 +1697,11 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the builder.ensure(TestHelpers { target: compiler.host }); // ensure that `libproc_macro` is available on the host. - builder.ensure(compile::Std::new(compiler, compiler.host)); + if suite == "mir-opt" { + builder.ensure(compile::Std::new_for_mir_opt_tests(compiler, compiler.host)); + } else { + builder.ensure(compile::Std::new(compiler, compiler.host)); + } // As well as the target if suite != "mir-opt" { |
