summaryrefslogtreecommitdiff
path: root/build_extra
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-08-02 13:13:32 -0400
committerGitHub <noreply@github.com>2018-08-02 13:13:32 -0400
commitc7c6203e61cb6bb85051b96eabd6deae7995a787 (patch)
treeef463466f34fd72a4ac5a30eecd3cc94254f321f /build_extra
parente30bdb71aa8b9902078e1ed8e7d014a68eb9eb2e (diff)
Source map support (#429)
This change increases size: out/debug/obj/libdeno/from_snapshot.o 19M -> 34M out/release/deno 32M -> 47M
Diffstat (limited to 'build_extra')
-rw-r--r--build_extra/deno.gni9
1 files changed, 5 insertions, 4 deletions
diff --git a/build_extra/deno.gni b/build_extra/deno.gni
index 5f3f4aa48..08cccfdea 100644
--- a/build_extra/deno.gni
+++ b/build_extra/deno.gni
@@ -32,13 +32,14 @@ template("create_snapshot") {
inputs = [
invoker.js,
]
+ if (defined(invoker.source_map)) {
+ inputs += [ invoker.source_map ]
+ }
outputs = [
snapshot_out_bin,
]
- args = [
- rebase_path(snapshot_out_bin, root_build_dir),
- rebase_path(invoker.js, root_build_dir),
- ]
+ args = rebase_path(outputs, root_build_dir) +
+ rebase_path(inputs, root_build_dir)
# To debug snapshotting problems:
# args += ["--trace-serializer"]