[llvm-commits] [llvm] r125272 - /llvm/trunk/utils/lit/lit/Util.py
NAKAMURA Takumi
geek4civic at gmail.com
Thu Feb 10 01:11:48 PST 2011
Author: chapuni
Date: Thu Feb 10 03:11:48 2011
New Revision: 125272
URL: http://llvm.org/viewvc/llvm-project?rev=125272&view=rev
Log:
lit/Util.py: On Cygwin, 'PATHEXT' may exist but it should not be used.
Modified:
llvm/trunk/utils/lit/lit/Util.py
Modified: llvm/trunk/utils/lit/lit/Util.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/Util.py?rev=125272&r1=125271&r2=125272&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/Util.py (original)
+++ llvm/trunk/utils/lit/lit/Util.py Thu Feb 10 03:11:48 2011
@@ -64,7 +64,11 @@
paths = os.defpath
# Get suffixes to search.
- pathext = os.environ.get('PATHEXT', '').split(os.pathsep)
+ # On Cygwin, 'PATHEXT' may exist but it should not be used.
+ if os.pathsep == ';':
+ pathext = os.environ.get('PATHEXT', '').split(';')
+ else:
+ pathext = ['']
# Search the paths...
for path in paths.split(os.pathsep):
More information about the llvm-commits
mailing list