diff options
author | bsalomon <bsalomon@google.com> | 2016-02-22 12:59:53 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-22 12:59:53 -0800 |
commit | 3d7b02c7287d7e914f97d214a838833d437c0143 (patch) | |
tree | a1a34351042a92d52665e8f42f74302d4be90409 /bin | |
parent | ca726abe1e4a2522b24e5143c5faf0e594a4802a (diff) |
Fix gyp-and-sync for windows
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1715423003
Review URL: https://codereview.chromium.org/1715423003
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sync-and-gyp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/sync-and-gyp b/bin/sync-and-gyp index 19fc1ed1c6..210e30c212 100755 --- a/bin/sync-and-gyp +++ b/bin/sync-and-gyp @@ -74,10 +74,16 @@ solutions = [ ] cache_dir = None ''' + +# Must use gclient.bat rather than gclient on windows (at least on mingw) +gclient = 'gclient' +if sys.platform == 'win32' or sys.platform == 'cygwin': + gclient = 'gclient.bat' + if current_deps_hash != deps_hash: # `gclient sync` is very slow, so skip whenever we can. try: - subprocess.call(['gclient', '--version']) + subprocess.call([gclient, '--version']) except: sys.stdout.write('gclient missing from $PATH, please install ' + 'depot_tools\n https://skia.org/user/quick/desktop\n') @@ -85,7 +91,7 @@ if current_deps_hash != deps_hash: if not os.path.isfile('.gclient'): with open('.gclient', 'w') as o: o.write(default_gclient_config) - gclient_sync_command = ['gclient', 'sync'] + skia_opt_deps + gclient_sync_command = [gclient, 'sync'] + skia_opt_deps try: sys.stdout.write('%r\n' % gclient_sync_command) subprocess.check_call(gclient_sync_command) |