File tree 1 file changed +13
-2
lines changed
crates/intrinsic-test/src
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,19 @@ fn main() {
14
14
let args: Cli = clap:: Parser :: parse ( ) ;
15
15
let processed_cli_options = ProcessedCli :: new ( args) ;
16
16
17
- // TODO: put this in a match block to support more architectures
18
- let test_environment = ArmTestProcessor :: create ( processed_cli_options) ;
17
+ let test_environment_result = match processed_cli_options. target . as_str ( ) {
18
+ "aarch64-unknown-linux-gnu" |
19
+ "armv7-unknown-linux-gnueabihf" |
20
+ "aarch64_be-unknown-linux-gnu" => Some ( ArmTestProcessor :: create ( processed_cli_options) ) ,
21
+
22
+ _ => None
23
+ } ;
24
+
25
+ if test_environment_result. is_none ( ) {
26
+ std:: process:: exit ( 0 ) ;
27
+ }
28
+
29
+ let test_environment = test_environment_result. unwrap ( ) ;
19
30
20
31
if !test_environment. build_c_file ( ) {
21
32
std:: process:: exit ( 2 ) ;
You can’t perform that action at this time.
0 commit comments