llvm.org GIT mirror llvm / 69916e1
git-llvm script should add .exe on Windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303708 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 2 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
133133 ignore_errors=kwargs.get('ignore_errors', None))
134134
135135 def program_exists(cmd):
136 if sys.platform == 'win32' and not cmd.endswith('.exe'):
137 cmd += '.exe'
136138 for path in os.environ["PATH"].split(os.pathsep):
137139 if os.access(os.path.join(path, cmd), os.X_OK):
138140 return True