[llvm-commits] [llvm] r138191 - /llvm/trunk/utils/lit/lit/TestingConfig.py
NAKAMURA Takumi
geek4civic at gmail.com
Fri Aug 19 22:44:52 PDT 2011
Author: chapuni
Date: Sat Aug 20 00:44:52 2011
New Revision: 138191
URL: http://llvm.org/viewvc/llvm-project?rev=138191&view=rev
Log:
utils/lit/lit/TestingConfig.py: Split out environment vars for Win32.
Modified:
llvm/trunk/utils/lit/lit/TestingConfig.py
Modified: llvm/trunk/utils/lit/lit/TestingConfig.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestingConfig.py?rev=138191&r1=138190&r2=138191&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestingConfig.py (original)
+++ llvm/trunk/utils/lit/lit/TestingConfig.py Sat Aug 20 00:44:52 2011
@@ -1,4 +1,5 @@
import os
+import sys
class TestingConfig:
""""
@@ -14,12 +15,16 @@
'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(),
More information about the llvm-commits
mailing list