[llvm] 9de63b2 - [lit] Pass the USERPROFILE variable through on Windows

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 19 00:38:52 PDT 2021


Author: Martin Storsjö
Date: 2021-03-19T09:38:19+02:00
New Revision: 9de63b2e051cb3e79645cc20b83b4d33d132cba0

URL: https://github.com/llvm/llvm-project/commit/9de63b2e051cb3e79645cc20b83b4d33d132cba0
DIFF: https://github.com/llvm/llvm-project/commit/9de63b2e051cb3e79645cc20b83b4d33d132cba0.diff

LOG: [lit] Pass the USERPROFILE variable through on Windows

When running in a Windows Container, the Git for Windows Unix tools
(C:\Program Files\Git\usr\bin) just hang if this variable isn't
passed through.

Currently, running the LLVM/clang tests in a Windows Container fails
if that directory is added to the path, but succeeds after this change.
(After this change, the previously used GnuWin tools can be left out
entirely, too, as lit automatically picks up the Git for Windows tools
if necessary.)

Differential Revision: https://reviews.llvm.org/D98858

Added: 
    

Modified: 
    llvm/utils/lit/lit/TestingConfig.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py
index 612db574677e..e1d13aa3a064 100644
--- a/llvm/utils/lit/lit/TestingConfig.py
+++ b/llvm/utils/lit/lit/TestingConfig.py
@@ -33,6 +33,7 @@ def fromdefaults(litConfig):
             pass_vars.append('INCLUDE')
             pass_vars.append('LIB')
             pass_vars.append('PATHEXT')
+            pass_vars.append('USERPROFILE')
             environment['PYTHONBUFFERED'] = '1'
 
         for var in pass_vars:


        


More information about the llvm-commits mailing list