]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/test.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / bootstrap / test.rs
index 22bf6b8a9d4dce99392222a591a10154fb821e7d..176c06114e01df5de5a0401cec8c631604fc3d6b 100644 (file)
@@ -1276,7 +1276,7 @@ fn run(self, builder: &Builder<'_>) {
         builder.ensure(native::TestHelpers { target: compiler.host });
 
         // As well as the target, except for plain wasm32, which can't build it
-        if !target.contains("wasm32") || target.contains("emscripten") {
+        if !target.contains("wasm") || target.contains("emscripten") {
             builder.ensure(native::TestHelpers { target });
         }
 
@@ -1540,6 +1540,9 @@ fn run(self, builder: &Builder<'_>) {
             }
         }
         cmd.env("RUSTC_BOOTSTRAP", "1");
+        // Override the rustc version used in symbol hashes to reduce the amount of normalization
+        // needed when diffing test output.
+        cmd.env("RUSTC_FORCE_RUSTC_VERSION", "compiletest");
         cmd.env("DOC_RUST_LANG_ORG_CHANNEL", builder.doc_rust_lang_org_channel());
         builder.add_rust_test_threads(&mut cmd);