about summary refs log tree commit diff
diff options
context:
space:
mode:
authorjeremyd2019 <github@jdrake.com>2025-09-02 16:27:45 -0700
committerGitHub <noreply@github.com>2025-09-02 16:27:45 -0700
commitaf0d6f129096dabeee42978c84596a3acb43c1b0 (patch)
tree891fcf903797ae08f3c849ecffc9885689e895f2
parent51ff895062ba60a7cba53f57af928c3fb7b0f2f4 (diff)
downloadrust-af0d6f129096dabeee42978c84596a3acb43c1b0.tar.gz
rust-af0d6f129096dabeee42978c84596a3acb43c1b0.zip
compiletest: cygwin follows windows in using PATH for dynamic libraries
-rw-r--r--src/tools/compiletest/src/util.rs2
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"