-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #127877 - Rejyr:migrate-print-rmake, r=jieyouxu
Migrate `print-target-list` to `rmake` and `print-calling-convention` to ui-test Part of #121876. r? `@jieyouxu` try-job: x86_64-gnu-llvm-18 try-job: test-various try-job: armhf-gnu try-job: aarch64-apple try-job: i686-mingw try-job: x86_64-msvc
- Loading branch information
Showing
10 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Checks that all the targets returned by `rustc --print target-list` are valid | ||
// target specifications | ||
|
||
use run_make_support::bare_rustc; | ||
|
||
// FIXME(127877): certain experimental targets fail with creating a 'LLVM TargetMachine' | ||
// in CI, so we skip them | ||
const EXPERIMENTAL_TARGETS: &[&str] = &["avr", "m68k", "csky", "xtensa"]; | ||
|
||
fn main() { | ||
let targets = bare_rustc().print("target-list").run().stdout_utf8(); | ||
|
||
for target in targets.lines() { | ||
// skip experimental targets that would otherwise fail | ||
if EXPERIMENTAL_TARGETS.iter().any(|experimental| target.contains(experimental)) { | ||
continue; | ||
} | ||
|
||
bare_rustc().target(target).print("sysroot").run(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//@ compile-flags: --print calling-conventions | ||
//@ build-pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
C | ||
C-cmse-nonsecure-call | ||
C-unwind | ||
Rust | ||
aapcs | ||
aapcs-unwind | ||
avr-interrupt | ||
avr-non-blocking-interrupt | ||
cdecl | ||
cdecl-unwind | ||
efiapi | ||
fastcall | ||
fastcall-unwind | ||
msp430-interrupt | ||
ptx-kernel | ||
riscv-interrupt-m | ||
riscv-interrupt-s | ||
rust-call | ||
rust-cold | ||
rust-intrinsic | ||
stdcall | ||
stdcall-unwind | ||
system | ||
system-unwind | ||
sysv64 | ||
sysv64-unwind | ||
thiscall | ||
thiscall-unwind | ||
unadjusted | ||
vectorcall | ||
vectorcall-unwind | ||
win64 | ||
win64-unwind | ||
x86-interrupt |