[clang] [clang-tools-extra] [llvm] [polly] [Unittest][Cygwin] Set $PATH when running unittests (PR #163947)

Alexander Richardson via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 17 20:17:11 PDT 2025


================
@@ -19,12 +19,12 @@
 
 if platform.system() == "Darwin":
     shlibpath_var = "DYLD_LIBRARY_PATH"
-elif platform.system() == "Windows":
+elif platform.system() == "Windows" or sys.platform == "cygwin":
     shlibpath_var = "PATH"
 else:
     shlibpath_var = "LD_LIBRARY_PATH"
 config.environment[shlibpath_var] = os.path.pathsep.join(
-    ("@SHLIBDIR@", "@LLVM_LIBS_DIR@", config.environment.get(shlibpath_var, ""))
+    (config.shlibdir, config.llvm_libs_dir, config.environment.get(shlibpath_var, ""))
----------------
arichardson wrote:

This is odd, how did this code work before? Was it moved here and no one noticed that the values are no longer expanded? 

https://github.com/llvm/llvm-project/pull/163947


More information about the cfe-commits mailing list