From 6b6fac209c97d5961ea875d4b22f66fa97272876 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 26 Jul 2018 23:21:10 -0400 Subject: Optimize compile time by using asm. Switches to using asm incbin to embed the V8 snapshot instead of outputing C code and then compiling it. Compile time for from_snapshot.o goes from 44s to 1s. --- build_extra/deno.gni | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build_extra') diff --git a/build_extra/deno.gni b/build_extra/deno.gni index 89614cfc4..5f3f4aa48 100644 --- a/build_extra/deno.gni +++ b/build_extra/deno.gni @@ -28,15 +28,15 @@ template("create_snapshot") { ]) tool = ":snapshot_creator" visibility = [ ":*" ] # Only targets in this file can depend on this. - snapshot_out_cc = "$target_gen_dir/snapshot_$name.cc" + snapshot_out_bin = "$target_gen_dir/snapshot_$name.bin" inputs = [ invoker.js, ] outputs = [ - snapshot_out_cc, + snapshot_out_bin, ] args = [ - rebase_path(snapshot_out_cc, root_build_dir), + rebase_path(snapshot_out_bin, root_build_dir), rebase_path(invoker.js, root_build_dir), ] -- cgit v1.2.3