summaryrefslogtreecommitdiff
path: root/utils/lit
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-08 03:35:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-08 03:35:19 +0000
commit2d01b26ce74f494726ef622c853e754913dbdd31 (patch)
treea5a623e1f0eac1fe28460a5986d3fbd57fbe49e8 /utils/lit
parent7e89738f98c1dbe455a1b6c5c55c04cc891fe503 (diff)
downloadllvm-2d01b26ce74f494726ef622c853e754913dbdd31.tar.gz
llvm-2d01b26ce74f494726ef622c853e754913dbdd31.tar.bz2
llvm-2d01b26ce74f494726ef622c853e754913dbdd31.tar.xz
lit: Preserve the PATHEXT variable when running subcommands, this is important on Win32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/TestingConfig.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/lit/TestingConfig.py b/utils/lit/TestingConfig.py
index e4874d7a82..1f5067c8e5 100644
--- a/utils/lit/TestingConfig.py
+++ b/utils/lit/TestingConfig.py
@@ -12,6 +12,7 @@ class TestingConfig:
environment = {
'PATH' : os.pathsep.join(litConfig.path +
[os.environ.get('PATH','')]),
+ 'PATHEXT' : os.environ.get('PATHEXT',''),
'SYSTEMROOT' : os.environ.get('SYSTEMROOT',''),
'LLVM_DISABLE_CRT_DEBUG' : '1',
}