@@ -193,15 +193,15 @@ macro_rules! intrinsics {
193193
194194 $( $rest: tt) *
195195 ) => (
196- #[ cfg( all( any( windows, all( target_os = "uefi" , target_arch = "x86_64" ) ) , target_pointer_width = "64" ) ) ]
196+ #[ cfg( all( any( windows, target_os = "cygwin" , all( target_os = "uefi" , target_arch = "x86_64" ) ) , target_pointer_width = "64" ) ) ]
197197 intrinsics! {
198198 $( #[ $( $attr) * ] ) *
199199 pub extern "unadjusted" fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
200200 $( $body) *
201201 }
202202 }
203203
204- #[ cfg( not( all( any( windows, all( target_os = "uefi" , target_arch = "x86_64" ) ) , target_pointer_width = "64" ) ) ) ]
204+ #[ cfg( not( all( any( windows, target_os = "cygwin" , all( target_os = "uefi" , target_arch = "x86_64" ) ) , target_pointer_width = "64" ) ) ) ]
205205 intrinsics! {
206206 $( #[ $( $attr) * ] ) *
207207 pub extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
@@ -257,7 +257,7 @@ macro_rules! intrinsics {
257257 #[ cfg( all( target_vendor = "apple" , any( target_arch = "x86" , target_arch = "x86_64" ) , not( feature = "mangled-names" ) ) ) ]
258258 mod $name {
259259 #[ no_mangle]
260- #[ cfg_attr( not( all( windows, target_env = "gnu" ) ) , linkage = "weak" ) ]
260+ #[ cfg_attr( not( any ( all( windows, target_env = "gnu" ) , target_os = "cygwin ") ) , linkage = "weak" ) ]
261261 $( #[ $( $attr) * ] ) *
262262 extern $abi fn $name( $( $argname: u16 ) ,* ) $( -> $ret) ? {
263263 super :: $name( $( f16:: from_bits( $argname) ) ,* )
@@ -293,7 +293,7 @@ macro_rules! intrinsics {
293293 #[ cfg( all( target_vendor = "apple" , any( target_arch = "x86" , target_arch = "x86_64" ) , not( feature = "mangled-names" ) ) ) ]
294294 mod $name {
295295 #[ no_mangle]
296- #[ cfg_attr( not( all( windows, target_env = "gnu" ) ) , linkage = "weak" ) ]
296+ #[ cfg_attr( not( any ( all( windows, target_env = "gnu" ) , target_os = "cygwin ") ) , linkage = "weak" ) ]
297297 $( #[ $( $attr) * ] ) *
298298 extern $abi fn $name( $( $argname: $ty) ,* ) -> u16 {
299299 super :: $name( $( $argname) ,* ) . to_bits( )
@@ -334,7 +334,7 @@ macro_rules! intrinsics {
334334 #[ cfg( all( target_arch = "arm" , not( feature = "mangled-names" ) ) ) ]
335335 mod $name {
336336 #[ no_mangle]
337- #[ cfg_attr( not( all( windows, target_env = "gnu" ) ) , linkage = "weak" ) ]
337+ #[ cfg_attr( not( any ( all( windows, target_env = "gnu" ) , target_os = "cygwin ") ) , linkage = "weak" ) ]
338338 $( #[ $( $attr) * ] ) *
339339 extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
340340 super :: $name( $( $argname) ,* )
@@ -344,7 +344,7 @@ macro_rules! intrinsics {
344344 #[ cfg( all( target_arch = "arm" , not( feature = "mangled-names" ) ) ) ]
345345 mod $alias {
346346 #[ no_mangle]
347- #[ cfg_attr( not( all( windows, target_env = "gnu" ) ) , linkage = "weak" ) ]
347+ #[ cfg_attr( not( any ( all( windows, target_env = "gnu" ) , target_os = "cygwin ") ) , linkage = "weak" ) ]
348348 $( #[ $( $attr) * ] ) *
349349 extern "aapcs" fn $alias( $( $argname: $ty) ,* ) $( -> $ret) ? {
350350 super :: $name( $( $argname) ,* )
@@ -411,7 +411,7 @@ macro_rules! intrinsics {
411411 mod $name {
412412 $( #[ $( $attr) * ] ) *
413413 #[ no_mangle]
414- #[ cfg_attr( not( all( windows, target_env = "gnu" ) ) , linkage = "weak" ) ]
414+ #[ cfg_attr( not( any ( all( windows, target_env = "gnu" ) , target_os = "cygwin ") ) , linkage = "weak" ) ]
415415 unsafe extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
416416 super :: $name( $( $argname) ,* )
417417 }
@@ -436,7 +436,7 @@ macro_rules! intrinsics {
436436 #[ naked]
437437 $( #[ $( $attr) * ] ) *
438438 #[ cfg_attr( not( feature = "mangled-names" ) , no_mangle) ]
439- #[ cfg_attr( not( all( windows, target_env = "gnu" ) ) , linkage = "weak" ) ]
439+ #[ cfg_attr( not( any ( all( windows, target_env = "gnu" ) , target_os = "cygwin ") ) , linkage = "weak" ) ]
440440 pub unsafe extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
441441 $( $body) *
442442 }
@@ -503,7 +503,7 @@ macro_rules! intrinsics {
503503 mod $name {
504504 $( #[ $( $attr) * ] ) *
505505 #[ no_mangle]
506- #[ cfg_attr( not( all( windows, target_env = "gnu" ) ) , linkage = "weak" ) ]
506+ #[ cfg_attr( not( any ( all( windows, target_env = "gnu" ) , target_os = "cygwin ") ) , linkage = "weak" ) ]
507507 $( unsafe $( $empty) ?) ? extern $abi fn $name( $( $argname: $ty) ,* ) $( -> $ret) ? {
508508 super :: $name( $( $argname) ,* )
509509 }
0 commit comments