Force using VS2013 for building

This commit is contained in:
Cheng Zhao 2015-07-03 10:01:44 +08:00
parent b3c76f3904
commit 25e15869ec
2 changed files with 4 additions and 1 deletions

View file

@ -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)

View file

@ -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.