Skip to content

Commit

Permalink
git-llvm script should add .exe on Windows.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303708 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Zachary Turner committed May 24, 2017
1 parent d448c73 commit 69916e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/git-svn/git-llvm
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def svn(cwd, *cmd, **kwargs):
ignore_errors=kwargs.get('ignore_errors', None))

def program_exists(cmd):
if sys.platform == 'win32' and not cmd.endswith('.exe'):
cmd += '.exe'
for path in os.environ["PATH"].split(os.pathsep):
if os.access(os.path.join(path, cmd), os.X_OK):
return True
Expand Down

0 comments on commit 69916e1

Please sign in to comment.