diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-09-04 10:02:04 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-04 10:02:04 +1000 |
| commit | 9214b1854caf1557b85f6f779ec3db03658260ed (patch) | |
| tree | d669d4fce1a5423c50105593a55c5fda5da8ff78 | |
| parent | 10cbfe6e20a2949a26ce88125533d904f58c630d (diff) | |
| parent | af0d6f129096dabeee42978c84596a3acb43c1b0 (diff) | |
| download | rust-9214b1854caf1557b85f6f779ec3db03658260ed.tar.gz rust-9214b1854caf1557b85f6f779ec3db03658260ed.zip | |
Rollup merge of #146140 - jeremyd2019:patch-1, r=jieyouxu
compiletest: cygwin follows windows in using PATH for dynamic libraries `@Berrysoft`
| -rw-r--r-- | src/tools/compiletest/src/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/util.rs b/src/tools/compiletest/src/util.rs index 1f16a672a98..558e9a58697 100644 --- a/src/tools/compiletest/src/util.rs +++ b/src/tools/compiletest/src/util.rs @@ -45,7 +45,7 @@ impl Utf8PathBufExt for Utf8PathBuf { /// The name of the environment variable that holds dynamic library locations. pub fn dylib_env_var() -> &'static str { - if cfg!(windows) { + if cfg!(any(windows, target_os = "cygwin")) { "PATH" } else if cfg!(target_vendor = "apple") { "DYLD_LIBRARY_PATH" |
