diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-08-20 05:44:52 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-08-20 05:44:52 +0000 |
commit | 7a13cc625bbc0d23bfb2450e87a4be7d7f98be15 (patch) | |
tree | 91a317a644f49c2a673196d7d127ec4a96bdc7e0 /utils | |
parent | 0dac82d92e64c698fdd005154c170357a183ca13 (diff) | |
download | external_llvm-7a13cc625bbc0d23bfb2450e87a4be7d7f98be15.zip external_llvm-7a13cc625bbc0d23bfb2450e87a4be7d7f98be15.tar.gz external_llvm-7a13cc625bbc0d23bfb2450e87a4be7d7f98be15.tar.bz2 |
utils/lit/lit/TestingConfig.py: Split out environment vars for Win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/lit/lit/TestingConfig.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/utils/lit/lit/TestingConfig.py b/utils/lit/lit/TestingConfig.py index 25bb341..a405a0c 100644 --- a/utils/lit/lit/TestingConfig.py +++ b/utils/lit/lit/TestingConfig.py @@ -1,4 +1,5 @@ import os +import sys class TestingConfig: """" @@ -14,12 +15,16 @@ class TestingConfig: 'LD_LIBRARY_PATH' : os.environ.get('LD_LIBRARY_PATH',''), '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', - 'PYTHONUNBUFFERED' : '1', } + if sys.platform == 'win32': + environment.update({ + 'LLVM_DISABLE_CRT_DEBUG' : '1', + 'PATHEXT' : os.environ.get('PATHEXT',''), + 'PYTHONUNBUFFERED' : '1', + }) + config = TestingConfig(parent, name = '<unnamed>', suffixes = set(), |