Skip to content

Commit

Permalink
Migrate print-target-list to rmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Rejyr committed Jul 17, 2024
1 parent eeda548 commit 328c34f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ run-make/pgo-gen-lto/Makefile
run-make/pgo-gen-no-imp-symbols/Makefile
run-make/pgo-indirect-call-promotion/Makefile
run-make/pointer-auth-link-with-c/Makefile
run-make/print-target-list/Makefile
run-make/raw-dylib-alt-calling-convention/Makefile
run-make/raw-dylib-c/Makefile
run-make/raw-dylib-import-name-type/Makefile
Expand Down
8 changes: 0 additions & 8 deletions tests/run-make/print-target-list/Makefile

This file was deleted.

12 changes: 12 additions & 0 deletions tests/run-make/print-target-list/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Checks that all the targets returned by `rustc --print target-list` are valid
// target specifications

use run_make_support::rustc::Rustc;

fn main() {
let targets = Rustc::bare().print("target-list").run().stdout_utf8();

for target in targets.split_whitespace() {
Rustc::bare().target(target).print("sysroot").run();
}
}

0 comments on commit 328c34f

Please sign in to comment.