提交 ab189d7e 编写于 作者: R Ryan Macnak 提交者: GitHub

Print gen_snapshot invocation on failure. (#3603)

Makes it much easier to get it running under gdb.
上级 66d42ed6
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册