Skip to content

Commit c88847f

Browse files
authored
Rollup merge of rust-lang#146140 - jeremyd2019:patch-1, r=jieyouxu
compiletest: cygwin follows windows in using PATH for dynamic libraries ```@Berrysoft```
2 parents 5fe8838 + af0d6f1 commit c88847f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl Utf8PathBufExt for Utf8PathBuf {
4545

4646
/// The name of the environment variable that holds dynamic library locations.
4747
pub fn dylib_env_var() -> &'static str {
48-
if cfg!(windows) {
48+
if cfg!(any(windows, target_os = "cygwin")) {
4949
"PATH"
5050
} else if cfg!(target_vendor = "apple") {
5151
"DYLD_LIBRARY_PATH"

0 commit comments

Comments
 (0)