File tree 4 files changed +16
-19
lines changed 4 files changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,6 @@ jobs:
105
105
106
106
./y.rs test
107
107
108
-
109
- - name : Run abi-checker
110
- if : matrix.env.TARGET_TRIPLE == ''
111
- run : ./y.rs abi-checker
112
-
113
108
- name : Package prebuilt cg_clif
114
109
run : tar cvfJ cg_clif.tar.xz build
115
110
Original file line number Diff line number Diff line change 1
1
use super :: build_sysroot;
2
+ use super :: config;
2
3
use super :: utils:: spawn_and_wait_with_input;
3
4
use build_system:: SysrootKind ;
4
5
use std:: env;
@@ -13,10 +14,15 @@ pub(crate) fn run(
13
14
host_triple : & str ,
14
15
target_triple : & str ,
15
16
) {
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
+ }
20
26
21
27
eprintln ! ( "Building sysroot for abi-checker" ) ;
22
28
build_sysroot:: build_sysroot (
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ fn usage() {
22
22
eprintln ! (
23
23
" ./y.rs test [--debug] [--sysroot none|clif|llvm] [--target-dir DIR] [--no-unstable-features]"
24
24
) ;
25
- eprintln ! (
26
- " ./y.rs abi-checker [--debug] [--sysroot none|clif|llvm] [--target-dir DIR] [--no-unstable-features]"
27
- ) ;
28
25
}
29
26
30
27
macro_rules! arg_error {
@@ -39,7 +36,6 @@ macro_rules! arg_error {
39
36
enum Command {
40
37
Build ,
41
38
Test ,
42
- AbiChecker ,
43
39
}
44
40
45
41
#[ derive( Copy , Clone , Debug ) ]
@@ -71,7 +67,6 @@ pub fn main() {
71
67
}
72
68
Some ( "build" ) => Command :: Build ,
73
69
Some ( "test" ) => Command :: Test ,
74
- Some ( "abi-checker" ) => Command :: AbiChecker ,
75
70
Some ( flag) if flag. starts_with ( '-' ) => arg_error ! ( "Expected command found flag {}" , flag) ,
76
71
Some ( command) => arg_error ! ( "Unknown command {}" , command) ,
77
72
None => {
@@ -147,9 +142,8 @@ pub fn main() {
147
142
& host_triple,
148
143
& target_triple,
149
144
) ;
150
- }
151
- Command :: Build => {
152
- build_sysroot:: build_sysroot (
145
+
146
+ abi_checker:: run (
153
147
channel,
154
148
sysroot_kind,
155
149
& target_dir,
@@ -158,8 +152,8 @@ pub fn main() {
158
152
& target_triple,
159
153
) ;
160
154
}
161
- Command :: AbiChecker => {
162
- abi_checker :: run (
155
+ Command :: Build => {
156
+ build_sysroot :: build_sysroot (
163
157
channel,
164
158
sysroot_kind,
165
159
& target_dir,
Original file line number Diff line number Diff line change @@ -48,3 +48,5 @@ test.libcore
48
48
test.regex-shootout-regex-dna
49
49
test.regex
50
50
test.portable-simd
51
+
52
+ testsuite.abi-checker
You can’t perform that action at this time.
0 commit comments