Merge pull request #9547 from electron/jessie-sysroot

Build with Debian Jessie sysroot image
This commit is contained in:
Cheng Zhao 2017-05-24 16:25:39 +09:00 committed by GitHub
commit 1257dee0b5
6 changed files with 156 additions and 113 deletions

View file

@ -170,11 +170,11 @@ def execute(argv, env=os.environ):
raise e
def execute_stdout(argv, env=os.environ):
def execute_stdout(argv, env=os.environ, cwd=None):
if is_verbose_mode():
print ' '.join(argv)
try:
subprocess.check_call(argv, env=env)
subprocess.check_call(argv, env=env, cwd=cwd)
except subprocess.CalledProcessError as e:
print e.output
raise e