Skip to content

Commit

Permalink
Auto merge of rust-lang#128073 - jieyouxu:exp-print-target-list, r=<try>
Browse files Browse the repository at this point in the history
[EXPERIMENTAL] try to see how to make `print-target-list` pass

Experiments for rust-lang#127877.

r? `@ghost`

try-job: x86_64-gnu-llvm-18
  • Loading branch information
bors committed Aug 3, 2024
2 parents fd8d6fb + c60c27c commit 6e9f3ee
Show file tree
Hide file tree
Showing 3 changed files with 10 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 @@ -26,7 +26,6 @@ run-make/pdb-buildinfo-cl-cmd/Makefile
run-make/pgo-gen-lto/Makefile
run-make/pgo-indirect-call-promotion/Makefile
run-make/print-calling-conventions/Makefile
run-make/print-target-list/Makefile
run-make/raw-dylib-alt-calling-convention/Makefile
run-make/raw-dylib-c/Makefile
run-make/redundant-libs/Makefile
Expand Down
8 changes: 0 additions & 8 deletions tests/run-make/print-target-list/Makefile

This file was deleted.

10 changes: 10 additions & 0 deletions tests/run-make/print-target-list/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//! Check that all targets returned by `--print target-list` are valid target specifications.
use run_make_support::bare_rustc;

fn main() {
let targets = bare_rustc().print("target-list").run().stdout_utf8();
for target in targets.lines() {
bare_rustc().target(target).print("sysroot").run();
}
}

0 comments on commit 6e9f3ee

Please sign in to comment.