diff options
author | Zoltan Varga <vargaz@gmail.com> | 2020-05-23 07:25:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 07:25:39 +0300 |
commit | 02e83f0ddc0c374509ff2661c0d5903c0ca58e6e (patch) | |
tree | 27b996f8691ee1d9742b3e9f8f59eaefb2958612 /sdks | |
parent | 8446996cabd9fa0fbea802d6098e19df91ee4053 (diff) |
[wasm] Avoid overwriting the pinvoke table if not changed. (#19833)
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/packager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sdks/wasm/packager.cs b/sdks/wasm/packager.cs index fa00b0313e4..b25f7cfed00 100644 --- a/sdks/wasm/packager.cs +++ b/sdks/wasm/packager.cs @@ -1096,7 +1096,8 @@ class Driver { string pinvoke_assemblies = ""; foreach (var a in assemblies) pinvoke_assemblies += $"{a.linkout_path} "; - ninja.WriteLine ($"build $builddir/pinvoke-table.h: gen-pinvoke-table {pinvoke_assemblies}"); + ninja.WriteLine ($"build $builddir/pinvoke-table.h: cpifdiff $builddir/pinvoke-table.h.tmp"); + ninja.WriteLine ($"build $builddir/pinvoke-table.h.tmp: gen-pinvoke-table {pinvoke_assemblies}"); ninja.WriteLine ($" pinvoke_libs=System.Native,{pinvoke_libs}"); } if (build_wasm) { |