Skip to content

Commit 0794061

Browse files
committed
Migrate print-target-list to rmake
1 parent 76af837 commit 0794061

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ run-make/pgo-gen-lto/Makefile
8989
run-make/pgo-gen-no-imp-symbols/Makefile
9090
run-make/pgo-indirect-call-promotion/Makefile
9191
run-make/pointer-auth-link-with-c/Makefile
92-
run-make/print-target-list/Makefile
9392
run-make/raw-dylib-alt-calling-convention/Makefile
9493
run-make/raw-dylib-c/Makefile
9594
run-make/raw-dylib-import-name-type/Makefile

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

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

0 commit comments

Comments
 (0)