[llvm] [lit][bazel] Fall back to a default PATHEXT when the variable is unset (PR #217416)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 17:57:00 PDT 2026


================
@@ -130,7 +130,11 @@ def which(command, paths=None):
     # Get suffixes to search.
     # On Cygwin, 'PATHEXT' may exist but it should not be used.
     if os.pathsep == ";":
-        pathext = os.environ.get("PATHEXT", "").split(";")
+        # If PATHEXT was stripped from the environment then use
----------------
UebelAndre wrote:

Updated!

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


More information about the llvm-commits mailing list