diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-26 14:41:36 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-01 12:14:10 -0400 |
| commit | ae82db54f61d75be762f5c6abd60b820666b500f (patch) | |
| tree | 4e561021a0127846f4efb711fcbd673c07defe23 /build_extra | |
| parent | 9a42fcad9f267415e7ef19c9d0864c0e64bc250f (diff) | |
build: use compiled_action for create_snapshot.
Switch the order of the snapshot_creator args, in order to allow for
optional source map arg.
Diffstat (limited to 'build_extra')
| -rw-r--r-- | build_extra/deno.gni | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/build_extra/deno.gni b/build_extra/deno.gni index 6fed4816e..89614cfc4 100644 --- a/build_extra/deno.gni +++ b/build_extra/deno.gni @@ -1,4 +1,5 @@ # Copyright 2018 the Deno authors. All rights reserved. MIT license. +import("//build/compiled_action.gni") template("run_node") { action(target_name) { @@ -19,36 +20,27 @@ template("run_node") { # snapshot. template("create_snapshot") { name = target_name - suffix = "_$name" - action("create_snapshot_" + name) { + compiled_action("create_snapshot_" + name) { forward_variables_from(invoker, [ "testonly", "deps", ]) + tool = ":snapshot_creator" visibility = [ ":*" ] # Only targets in this file can depend on this. - deps += [ ":snapshot_creator" ] - script = "//third_party/v8/tools/run.py" - data = [] - exe = rebase_path(get_label_info(":snapshot_creator", "root_out_dir") + - "/snapshot_creator") - snapshot_out_cc = "$target_gen_dir/snapshot${suffix}.cc" - sources = [ + snapshot_out_cc = "$target_gen_dir/snapshot_$name.cc" + inputs = [ invoker.js, ] outputs = [ snapshot_out_cc, ] args = [ - exe, - rebase_path(invoker.js, root_build_dir), rebase_path(snapshot_out_cc, root_build_dir), + rebase_path(invoker.js, root_build_dir), ] # To debug snapshotting problems: # args += ["--trace-serializer"] - data = [ - invoker.js, - ] } } |
