File tree Expand file tree Collapse file tree 4 files changed +16
-19
lines changed Expand file tree Collapse file tree 4 files changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,6 @@ jobs:
105105
106106 ./y.rs test
107107
108-
109- - name : Run abi-checker
110- if : matrix.env.TARGET_TRIPLE == ''
111- run : ./y.rs abi-checker
112-
113108 - name : Package prebuilt cg_clif
114109 run : tar cvfJ cg_clif.tar.xz build
115110
Original file line number Diff line number Diff line change 11use super :: build_sysroot;
2+ use super :: config;
23use super :: utils:: spawn_and_wait_with_input;
34use build_system:: SysrootKind ;
45use std:: env;
@@ -13,10 +14,15 @@ pub(crate) fn run(
1314 host_triple : & str ,
1415 target_triple : & str ,
1516) {
16- assert_eq ! (
17- host_triple, target_triple,
18- "abi-checker not supported on cross-compilation scenarios"
19- ) ;
17+ if !config:: get_bool ( "testsuite.abi-checker" ) {
18+ eprintln ! ( "[SKIP] abi-checker" ) ;
19+ return ;
20+ }
21+
22+ if host_triple != target_triple {
23+ eprintln ! ( "[SKIP] abi-checker (cross-compilation not supported)" ) ;
24+ return ;
25+ }
2026
2127 eprintln ! ( "Building sysroot for abi-checker" ) ;
2228 build_sysroot:: build_sysroot (
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ fn usage() {
2222 eprintln ! (
2323 " ./y.rs test [--debug] [--sysroot none|clif|llvm] [--target-dir DIR] [--no-unstable-features]"
2424 ) ;
25- eprintln ! (
26- " ./y.rs abi-checker [--debug] [--sysroot none|clif|llvm] [--target-dir DIR] [--no-unstable-features]"
27- ) ;
2825}
2926
3027macro_rules! arg_error {
@@ -39,7 +36,6 @@ macro_rules! arg_error {
3936enum Command {
4037 Build ,
4138 Test ,
42- AbiChecker ,
4339}
4440
4541#[ derive( Copy , Clone , Debug ) ]
@@ -71,7 +67,6 @@ pub fn main() {
7167 }
7268 Some ( "build" ) => Command :: Build ,
7369 Some ( "test" ) => Command :: Test ,
74- Some ( "abi-checker" ) => Command :: AbiChecker ,
7570 Some ( flag) if flag. starts_with ( '-' ) => arg_error ! ( "Expected command found flag {}" , flag) ,
7671 Some ( command) => arg_error ! ( "Unknown command {}" , command) ,
7772 None => {
@@ -147,9 +142,8 @@ pub fn main() {
147142 & host_triple,
148143 & target_triple,
149144 ) ;
150- }
151- Command :: Build => {
152- build_sysroot:: build_sysroot (
145+
146+ abi_checker:: run (
153147 channel,
154148 sysroot_kind,
155149 & target_dir,
@@ -158,8 +152,8 @@ pub fn main() {
158152 & target_triple,
159153 ) ;
160154 }
161- Command :: AbiChecker => {
162- abi_checker :: run (
155+ Command :: Build => {
156+ build_sysroot :: build_sysroot (
163157 channel,
164158 sysroot_kind,
165159 & target_dir,
Original file line number Diff line number Diff line change @@ -48,3 +48,5 @@ test.libcore
4848test.regex-shootout-regex-dna
4949test.regex
5050test.portable-simd
51+
52+ testsuite.abi-checker
You can’t perform that action at this time.
0 commit comments