diff options
author | mgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-20 17:30:31 +0000 |
---|---|---|
committer | mgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-20 17:30:31 +0000 |
commit | 2733f1bc592e51ec87b8d45991657676186b7510 (patch) | |
tree | 29f42bf8faa4f6f2d02ddbe8e50da23ee8adaf3d /build | |
parent | e30974f5186e91c67b8fd8932b321f8148086499 (diff) | |
download | chromium_src-2733f1bc592e51ec87b8d45991657676186b7510.zip chromium_src-2733f1bc592e51ec87b8d45991657676186b7510.tar.gz chromium_src-2733f1bc592e51ec87b8d45991657676186b7510.tar.bz2 |
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
Diffstat (limited to 'build')
-rwxr-xr-x | build/get_syzygy_binaries.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/get_syzygy_binaries.py b/build/get_syzygy_binaries.py index b68964d..05e8072 100755 --- a/build/get_syzygy_binaries.py +++ b/build/get_syzygy_binaries.py @@ -300,6 +300,8 @@ def _InstallBinaries(options, deleted={}): archive.extract(entry.filename, fulldir) md5 = _Md5(fullpath) contents[relpath] = md5 + if sys.platform == 'cygwin': + os.chmod(fullpath, os.stat(fullpath).st_mode | stat.S_IXUSR) return state @@ -359,7 +361,7 @@ def _ParseCommandLine(): def main(): # We only care about Windows platforms, as the Syzygy binaries aren't used # elsewhere. - if sys.platform != 'win32': + if sys.platform not in ('win32', 'cygwin'): return options = _ParseCommandLine() |