@@ -256,7 +256,7 @@ macro_rules! intrinsics {
256
256
#[ cfg( all( any( windows, target_os = "uefi" ) , target_arch = "x86_64" , not( feature = "mangled-names" ) ) ) ]
257
257
mod $name {
258
258
#[ no_mangle]
259
- #[ cfg_attr( all ( not( windows) , not ( target_vendor = "apple " ) ) , linkage = "weak" ) ]
259
+ #[ cfg_attr( not( all ( windows, target_env = "gnu " ) ) , linkage = "weak" ) ]
260
260
extern $abi fn $name( $( $argname: $ty) ,* )
261
261
-> $crate:: macros:: win64_128bit_abi_hack:: U64x2
262
262
{
@@ -298,7 +298,7 @@ macro_rules! intrinsics {
298
298
#[ cfg( all( target_arch = "arm" , not( feature = "mangled-names" ) ) ) ]
299
299
mod $name {
300
300
#[ no_mangle]
301
- #[ cfg_attr( all ( not( windows) , not ( target_vendor = "apple " ) ) , linkage = "weak" ) ]
301
+ #[ cfg_attr( not( all ( windows, target_env = "gnu " ) ) , linkage = "weak" ) ]
302
302
$( #[ $( $attr) * ] ) *
303
303
extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
304
304
super :: $name( $( $argname) ,* )
@@ -308,7 +308,7 @@ macro_rules! intrinsics {
308
308
#[ cfg( all( target_arch = "arm" , not( feature = "mangled-names" ) ) ) ]
309
309
mod $alias {
310
310
#[ no_mangle]
311
- #[ cfg_attr( all ( not( windows) , not ( target_vendor= "apple ") ) , linkage = "weak" ) ]
311
+ #[ cfg_attr( not( all ( windows, target_env = "gnu ") ) , linkage = "weak" ) ]
312
312
$( #[ $( $attr) * ] ) *
313
313
extern "aapcs" fn $alias( $( $argname: $ty) ,* ) $( -> $ret) ? {
314
314
super :: $name( $( $argname) ,* )
@@ -375,7 +375,7 @@ macro_rules! intrinsics {
375
375
mod $name {
376
376
$( #[ $( $attr) * ] ) *
377
377
#[ no_mangle]
378
- #[ cfg_attr( all ( not( windows) , not ( target_vendor = "apple " ) ) , linkage = "weak" ) ]
378
+ #[ cfg_attr( not( all ( windows, target_env = "gnu " ) ) , linkage = "weak" ) ]
379
379
unsafe extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
380
380
super :: $name( $( $argname) ,* )
381
381
}
@@ -400,7 +400,7 @@ macro_rules! intrinsics {
400
400
#[ naked]
401
401
$( #[ $( $attr) * ] ) *
402
402
#[ cfg_attr( not( feature = "mangled-names" ) , no_mangle) ]
403
- #[ cfg_attr( all ( not( windows) , not ( target_vendor = "apple " ) ) , linkage = "weak" ) ]
403
+ #[ cfg_attr( not( all ( windows, target_env = "gnu " ) ) , linkage = "weak" ) ]
404
404
pub unsafe extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
405
405
$( $body) *
406
406
}
@@ -467,7 +467,7 @@ macro_rules! intrinsics {
467
467
mod $name {
468
468
$( #[ $( $attr) * ] ) *
469
469
#[ no_mangle]
470
- #[ cfg_attr( all ( not( windows) , not ( target_vendor = "apple " ) ) , linkage = "weak" ) ]
470
+ #[ cfg_attr( not( all ( windows, target_env = "gnu " ) ) , linkage = "weak" ) ]
471
471
$( unsafe $( $empty) ?) ? extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
472
472
super :: $name( $( $argname) ,* )
473
473
}
0 commit comments