Skip to content

Commit 8563312

Browse files
committed
compiletest: pass -Zunstable-options for unpretty and no-codegen paths
Unconditionally pass -Zunstable-options in the `unpretty` and `-Zno-codegen` (typecheck) paths in compiletest. This ensures custom targets resolved via RUST_TARGET_PATH work consistently. This is primarily needed when using non-built-in targets without a .json extension. Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
1 parent e26dedc commit 8563312

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tools/compiletest/src/runtest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ impl<'test> TestCx<'test> {
452452
rustc
453453
.arg(input)
454454
.args(&["-Z", &format!("unpretty={}", pretty_type)])
455+
.arg("-Zunstable-options")
455456
.args(&["--target", &self.config.target])
456457
.arg("-L")
457458
.arg(&aux_dir)
@@ -557,6 +558,7 @@ impl<'test> TestCx<'test> {
557558
rustc
558559
.arg("-")
559560
.arg("-Zno-codegen")
561+
.arg("-Zunstable-options")
560562
.arg("--out-dir")
561563
.arg(&out_dir)
562564
.arg(&format!("--target={}", target))

0 commit comments

Comments
 (0)