Skip to content

Commit 6e9f3ee

Browse files
committed
Auto merge of #128073 - jieyouxu:exp-print-target-list, r=<try>
[EXPERIMENTAL] try to see how to make `print-target-list` pass Experiments for #127877. r? `@ghost` try-job: x86_64-gnu-llvm-18
2 parents fd8d6fb + c60c27c commit 6e9f3ee

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ run-make/pdb-buildinfo-cl-cmd/Makefile
2626
run-make/pgo-gen-lto/Makefile
2727
run-make/pgo-indirect-call-promotion/Makefile
2828
run-make/print-calling-conventions/Makefile
29-
run-make/print-target-list/Makefile
3029
run-make/raw-dylib-alt-calling-convention/Makefile
3130
run-make/raw-dylib-c/Makefile
3231
run-make/redundant-libs/Makefile

tests/run-make/print-target-list/Makefile

-8
This file was deleted.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//! Check that all targets returned by `--print target-list` are valid target specifications.
2+
3+
use run_make_support::bare_rustc;
4+
5+
fn main() {
6+
let targets = bare_rustc().print("target-list").run().stdout_utf8();
7+
for target in targets.lines() {
8+
bare_rustc().target(target).print("sysroot").run();
9+
}
10+
}

0 commit comments

Comments
 (0)