From 23573b53480c8cbc8c5747d0f8f938c781a1f257 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sat, 8 Jun 2019 05:12:54 -0400 Subject: [PATCH] [wasm] Avoid rebuilding the wasm files for the aot images if the aot image hasn't changed. --- sdks/wasm/packager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sdks/wasm/packager.cs b/sdks/wasm/packager.cs index 2484ca457d4..cefbeb25e04 100644 --- a/sdks/wasm/packager.cs +++ b/sdks/wasm/packager.cs @@ -851,14 +851,15 @@ class Driver { a.o_path = $"$builddir/{filename}.o"; a.aot_depfile_path = $"$builddir/aot-in/{filename}.depfile"; - ninja.WriteLine ($"build {a.bc_path}: aot {infile}"); + ninja.WriteLine ($"build {a.bc_path}.tmp: aot {infile}"); ninja.WriteLine ($" src_file={infile}"); - ninja.WriteLine ($" outfile={a.bc_path}"); + ninja.WriteLine ($" outfile={a.bc_path}.tmp"); ninja.WriteLine ($" mono_path={aot_in_path}"); ninja.WriteLine ($" depfile={a.aot_depfile_path}"); if (enable_dedup) ninja.WriteLine ($" aot_args=dedup-skip"); + ninja.WriteLine ($"build {a.bc_path}: cpifdiff {a.bc_path}.tmp"); ninja.WriteLine ($"build {a.o_path}: emcc {a.bc_path}"); ofiles += " " + $"{a.o_path}"; -- 2.11.4.GIT