llvm.org GIT mirror llvm / f5201bc
lit/Util.py: On Cygwin, 'PATHEXT' may exist but it should not be used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125272 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 8 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6363 paths = os.defpath
6464
6565 # Get suffixes to search.
66 pathext = os.environ.get('PATHEXT', '').split(os.pathsep)
66 # On Cygwin, 'PATHEXT' may exist but it should not be used.
67 if os.pathsep == ';':
68 pathext = os.environ.get('PATHEXT', '').split(';')
69 else:
70 pathext = ['']
6771
6872 # Search the paths...
6973 for path in paths.split(os.pathsep):