Commit 2733f1bc authored by mgiuca@chromium.org's avatar mgiuca@chromium.org

Fixed build on Windows with Cygwin (get_syzygy_binaries script).

1. Allow get_syzygy_binaries to run in cygwin.
2. On cygwin, get_syzygy_binaries makes all of the binaries it unpacks
   executable (to avoid "permission denied" errors during compilation).

BUG=386911

Review URL: https://codereview.chromium.org/341183002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278748 0039d316-1c4b-4281-b951-d872f2087c98
parent e30974f5
...@@ -300,6 +300,8 @@ def _InstallBinaries(options, deleted={}): ...@@ -300,6 +300,8 @@ def _InstallBinaries(options, deleted={}):
archive.extract(entry.filename, fulldir) archive.extract(entry.filename, fulldir)
md5 = _Md5(fullpath) md5 = _Md5(fullpath)
contents[relpath] = md5 contents[relpath] = md5
if sys.platform == 'cygwin':
os.chmod(fullpath, os.stat(fullpath).st_mode | stat.S_IXUSR)
return state return state
...@@ -359,7 +361,7 @@ def _ParseCommandLine(): ...@@ -359,7 +361,7 @@ def _ParseCommandLine():
def main(): def main():
# We only care about Windows platforms, as the Syzygy binaries aren't used # We only care about Windows platforms, as the Syzygy binaries aren't used
# elsewhere. # elsewhere.
if sys.platform != 'win32': if sys.platform not in ('win32', 'cygwin'):
return return
options = _ParseCommandLine() options = _ParseCommandLine()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment