@@ -193,15 +193,15 @@ macro_rules! intrinsics {
193
193
194
194
$($rest:tt)*
195
195
) => (
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"))]
197
197
intrinsics! {
198
198
$(#[$($attr)*])*
199
199
pub extern "unadjusted" fn $name( $($argname: $ty),* ) $(-> $ret)? {
200
200
$($body)*
201
201
}
202
202
}
203
203
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")))]
205
205
intrinsics! {
206
206
$(#[$($attr)*])*
207
207
pub extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
@@ -257,7 +257,7 @@ macro_rules! intrinsics {
257
257
#[cfg(all(target_vendor = "apple", any(target_arch = "x86", target_arch = "x86_64"), not(feature = "mangled-names")))]
258
258
mod $name {
259
259
#[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")]
261
261
$(#[$($attr)*])*
262
262
extern $abi fn $name( $($argname: u16),* ) $(-> $ret)? {
263
263
super::$name($(f16::from_bits($argname)),*)
@@ -293,7 +293,7 @@ macro_rules! intrinsics {
293
293
#[cfg(all(target_vendor = "apple", any(target_arch = "x86", target_arch = "x86_64"), not(feature = "mangled-names")))]
294
294
mod $name {
295
295
#[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")]
297
297
$(#[$($attr)*])*
298
298
extern $abi fn $name( $($argname: $ty),* ) -> u16 {
299
299
super::$name($($argname),*).to_bits()
@@ -334,7 +334,7 @@ macro_rules! intrinsics {
334
334
#[cfg(all(target_arch = "arm", not(feature = "mangled-names")))]
335
335
mod $name {
336
336
#[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")]
338
338
$(#[$($attr)*])*
339
339
extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
340
340
super::$name($($argname),*)
@@ -344,7 +344,7 @@ macro_rules! intrinsics {
344
344
#[cfg(all(target_arch = "arm", not(feature = "mangled-names")))]
345
345
mod $alias {
346
346
#[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")]
348
348
$(#[$($attr)*])*
349
349
extern "aapcs" fn $alias( $($argname: $ty),* ) $(-> $ret)? {
350
350
super::$name($($argname),*)
@@ -411,7 +411,7 @@ macro_rules! intrinsics {
411
411
mod $name {
412
412
$(#[$($attr)*])*
413
413
#[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")]
415
415
unsafe extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
416
416
super::$name($($argname),*)
417
417
}
@@ -436,7 +436,7 @@ macro_rules! intrinsics {
436
436
#[naked]
437
437
$(#[$($attr)*])*
438
438
#[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")]
440
440
pub unsafe extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
441
441
$($body)*
442
442
}
@@ -503,7 +503,7 @@ macro_rules! intrinsics {
503
503
mod $name {
504
504
$(#[$($attr)*])*
505
505
#[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")]
507
507
$(unsafe $($empty)?)? extern $abi fn $name( $($argname: $ty),* ) $(-> $ret)? {
508
508
super::$name($($argname),*)
509
509
}
0 commit comments