]> khamidou — GitHub mirrors - electron.git/commitdiff
Force using VS2013 for building
authorCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 02:01:44 +0000 (10:01 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 02:01:44 +0000 (10:01 +0800)
script/bootstrap.py
script/update.py

index 60b7a83af66deacfde28ebacc02e7a90b0806fe3..fd9958d9ca1ad9e30aba9cd1cb3c969a70bec148 100755 (executable)
@@ -2,6 +2,7 @@
 
 import argparse
 import os
+import subprocess
 import sys
 
 from lib.config import LIBCHROMIUMCONTENT_COMMIT, BASE_URL, PLATFORM, \
@@ -113,7 +114,7 @@ def update_node_modules(dirname, env=None):
     if os.environ.has_key('CI'):
       try:
         execute_stdout(args, env)
-      except:
+      except subprocess.CalledProcessError:
         pass
     else:
       execute_stdout(args, env)
index a03eb44f0d60b9052c4fee369efbf3d964596294..2cbfa706e6ebb931059c586f6f60d12399af52bd 100755 (executable)
@@ -44,6 +44,8 @@ def run_gyp(target_arch, component):
   env = os.environ.copy()
   if PLATFORM == 'linux' and target_arch != get_host_arch():
     env['GYP_CROSSCOMPILE'] = '1'
+  elif PLATFORM == 'win32':
+    env['GYP_MSVS_VERSION'] = '2013'
   python = sys.executable
   if sys.platform == 'cygwin':
     # Force using win32 python on cygwin.