Skip to content

Commit fe64184

Browse files
committed
Fix backtrace for cygwin
1 parent a932eb3 commit fe64184

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

library/std/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ object = { version = "0.36.0", default-features = false, optional = true, featur
5757
'archive',
5858
] }
5959

60-
[target.'cfg(windows)'.dependencies.windows-targets]
60+
[target.'cfg(any(windows, target_os = "cygwin"))'.dependencies.windows-targets]
6161
path = "../windows_targets"
6262

6363
[dev-dependencies]

library/windows_targets/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub macro link {
3434
}
3535

3636
#[cfg(not(feature = "windows_raw_dylib"))]
37+
#[cfg(not(target_os = "cygwin"))] // Cygwin doesn't need these libs
3738
#[cfg_attr(target_vendor = "win7", link(name = "advapi32"))]
3839
#[link(name = "ntdll")]
3940
#[link(name = "userenv")]

0 commit comments

Comments
 (0)