@@ -1535,12 +1535,12 @@ mod remove_dir_impl {
1535
1535
use crate :: sync:: Arc ;
1536
1536
use crate :: sys:: { cvt, cvt_r} ;
1537
1537
1538
- #[ cfg( not( all( target_os = "macos" , target_arch = "x86_64" ) , ) ) ]
1538
+ #[ cfg( not( all( target_os = "macos" , not ( target_arch = "aarch64" ) ) , ) ) ]
1539
1539
use libc:: { fdopendir, openat, unlinkat} ;
1540
- #[ cfg( all( target_os = "macos" , target_arch = "x86_64" ) ) ]
1540
+ #[ cfg( all( target_os = "macos" , not ( target_arch = "aarch64" ) ) ) ]
1541
1541
use macos_weak:: { fdopendir, openat, unlinkat} ;
1542
1542
1543
- #[ cfg( all( target_os = "macos" , target_arch = "x86_64" ) ) ]
1543
+ #[ cfg( all( target_os = "macos" , not ( target_arch = "aarch64" ) ) ) ]
1544
1544
mod macos_weak {
1545
1545
use crate :: sys:: weak:: weak;
1546
1546
use libc:: { c_char, c_int, DIR } ;
@@ -1699,12 +1699,12 @@ mod remove_dir_impl {
1699
1699
}
1700
1700
}
1701
1701
1702
- #[ cfg( not( all( target_os = "macos" , target_arch = "x86_64" ) ) ) ]
1702
+ #[ cfg( not( all( target_os = "macos" , not ( target_arch = "aarch64" ) ) ) ) ]
1703
1703
pub fn remove_dir_all ( p : & Path ) -> io:: Result < ( ) > {
1704
1704
remove_dir_all_modern ( p)
1705
1705
}
1706
1706
1707
- #[ cfg( all( target_os = "macos" , target_arch = "x86_64" ) ) ]
1707
+ #[ cfg( all( target_os = "macos" , not ( target_arch = "aarch64" ) ) ) ]
1708
1708
pub fn remove_dir_all ( p : & Path ) -> io:: Result < ( ) > {
1709
1709
if macos_weak:: has_openat ( ) {
1710
1710
// openat() is available with macOS 10.10+, just like unlinkat() and fdopendir()
0 commit comments