Skip to content

Commit 9de63b2

Browse files
committed
[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
1 parent c9fc1a9 commit 9de63b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/utils/lit/lit/TestingConfig.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def fromdefaults(litConfig):
3333
pass_vars.append('INCLUDE')
3434
pass_vars.append('LIB')
3535
pass_vars.append('PATHEXT')
36+
pass_vars.append('USERPROFILE')
3637
environment['PYTHONBUFFERED'] = '1'
3738

3839
for var in pass_vars:

0 commit comments

Comments
 (0)