Print gen_snapshot invocation on failure. (flutter/engine#3603)

Makes it much easier to get it running under gdb.
This commit is contained in:
Ryan Macnak
2017-04-18 12:14:07 -07:00
committed by GitHub
parent 7b2e3b2609
commit 975cebb327
2 changed files with 8 additions and 2 deletions

View File

@@ -51,6 +51,8 @@ def main():
cmd.append(args.main_dart)
result = subprocess.call(cmd, cwd=args.root_build_dir)
if result != 0:
print("Command failed: '%s'" % (" ".join(cmd)))
return result

View File

@@ -31,7 +31,7 @@ def main():
args = parser.parse_args()
result = subprocess.call([
cmd = [
args.snapshotter_path,
'--snapshot_kind=script',
'--vm_snapshot_data=%s' % args.vm_snapshot_data,
@@ -40,7 +40,11 @@ def main():
'--script_snapshot=%s' % args.snapshot,
'--dependencies=%s' % args.depfile,
args.main_dart,
], cwd=args.root_build_dir)
]
result = subprocess.call(cmd, cwd=args.root_build_dir)
if result != 0:
print("Command failed: '%s'" % (" ".join(cmd)))
return result