@@ -1399,7 +1399,7 @@ impl Build {
1399
1399
}
1400
1400
1401
1401
let mut cmd = compiler. to_command ( ) ;
1402
- let is_arm = matches ! ( target. arch, "aarch64" | "arm" ) ;
1402
+ let is_arm = matches ! ( target. arch, "aarch64" | "arm64ec" | " arm") ;
1403
1403
command_add_output_file (
1404
1404
& mut cmd,
1405
1405
& obj,
@@ -1845,7 +1845,7 @@ impl Build {
1845
1845
}
1846
1846
cmd
1847
1847
} ;
1848
- let is_arm = matches ! ( target. arch, "aarch64" | "arm" ) ;
1848
+ let is_arm = matches ! ( target. arch, "aarch64" | "arm64ec" | " arm") ;
1849
1849
command_add_output_file (
1850
1850
& mut cmd,
1851
1851
& obj. dst ,
@@ -2594,14 +2594,11 @@ impl Build {
2594
2594
2595
2595
fn msvc_macro_assembler ( & self ) -> Result < Command , Error > {
2596
2596
let target = self . get_target ( ) ?;
2597
- let tool = if target. arch == "x86_64" {
2598
- "ml64.exe"
2599
- } else if target. arch == "arm" {
2600
- "armasm.exe"
2601
- } else if target. arch == "aarch64" {
2602
- "armasm64.exe"
2603
- } else {
2604
- "ml.exe"
2597
+ let tool = match target. arch {
2598
+ "x86_64" => "ml64.exe" ,
2599
+ "arm" => "armasm.exe" ,
2600
+ "aarch64" | "arm64ec" => "armasm64.exe" ,
2601
+ _ => "ml.exe" ,
2605
2602
} ;
2606
2603
let mut cmd = self
2607
2604
. windows_registry_find ( & target, tool)
@@ -2610,7 +2607,7 @@ impl Build {
2610
2607
for directory in self . include_directories . iter ( ) {
2611
2608
cmd. arg ( "-I" ) . arg ( & * * directory) ;
2612
2609
}
2613
- if target. arch == "aarch64" || target . arch == "arm" {
2610
+ if matches ! ( target. arch, "aarch64" | "arm64ec" | "arm" ) {
2614
2611
if self . get_debug ( ) {
2615
2612
cmd. arg ( "-g" ) ;
2616
2613
}
0 commit comments