Skip to content

Commit eea0db2

Browse files
committed
Fix rustc test suite
1 parent d2b328e commit eea0db2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/test_rustc_tests.sh

+12
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,18 @@ index 30387af428c..f7895b12961 100644
166166
"/build-root",
167167
)
168168
.normalize(r#""[^"]*\/symbols.o""#, "\\"/symbols.o\\"")
169+
diff --git a/src/tools/compiletest/src/runtest/run_make.rs b/src/tools/compiletest/src/runtest/run_make.rs
170+
index 073116933bd..c3e4578204d 100644
171+
--- a/src/tools/compiletest/src/runtest/run_make.rs
172+
+++ b/src/tools/compiletest/src/runtest/run_make.rs
173+
@@ -109,7 +109,6 @@ pub(super) fn run_rmake_test(&self) {
174+
// library or compiler features. Here, we force the stage 0 rustc to consider itself as
175+
// a stable-channel compiler via \`RUSTC_BOOTSTRAP=-1\` to prevent *any* unstable
176+
// library/compiler usages, even if stage 0 rustc is *actually* a nightly rustc.
177+
- .env("RUSTC_BOOTSTRAP", "-1")
178+
.arg("-o")
179+
.arg(&recipe_bin)
180+
// Specify library search paths for \`run_make_support\`.
169181
EOF
170182

171183
echo "[TEST] rustc test suite"

0 commit comments

Comments
 (0)