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


CrOS-Libchrome-Original-Commit: 2733f1bc592e51ec87b8d45991657676186b7510
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 @@
           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 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()