diff --git a/compiler/rustc_metadata/Cargo.toml b/compiler/rustc_metadata/Cargo.toml index cfe412e99d8d5..451b231fed54e 100644 --- a/compiler/rustc_metadata/Cargo.toml +++ b/compiler/rustc_metadata/Cargo.toml @@ -31,7 +31,7 @@ tempfile = "3.7.1" tracing = "0.1" # tidy-alphabetical-end -[target.'cfg(target_os = "aix")'.dependencies] +[target.'cfg(any(target_os = "aix", target_os = "cygwin"))'.dependencies] # tidy-alphabetical-start libc = "0.2" # tidy-alphabetical-end diff --git a/compiler/rustc_metadata/src/creader.rs b/compiler/rustc_metadata/src/creader.rs index 07fb2de8a3e0c..4d12c73d0dd07 100644 --- a/compiler/rustc_metadata/src/creader.rs +++ b/compiler/rustc_metadata/src/creader.rs @@ -1442,6 +1442,11 @@ fn load_dylib(path: &Path, max_attempts: usize) -> Result {