File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
crates/intrinsic-test/src Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,19 @@ fn main() {
1414 let args: Cli = clap:: Parser :: parse ( ) ;
1515 let processed_cli_options = ProcessedCli :: new ( args) ;
1616
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 ( ) ;
1930
2031 if !test_environment. build_c_file ( ) {
2132 std:: process:: exit ( 2 ) ;
You can’t perform that action at this time.
0 commit comments