From 9b5585724f9b98cd1766bc031c57fd6f568785b8 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Tue, 6 Apr 2021 16:35:54 -0400 Subject: [PATCH] [wasm] Don't include pinvoke-table.h in the runtime pack. `pinvoke-table.h` is generated when building the native files for wasm. They are not required in the runtime pack, as any wasm app build needing to do native relinking would be generating one of it's own. --- .../pkg/sfx/Microsoft.NETCore.App/Directory.Build.props | 1 - src/mono/wasm/Makefile | 2 +- src/mono/wasm/build/WasmApp.targets | 1 - src/mono/wasm/wasm.proj | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props b/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props index e01cf16aae410..bc114a7ec5c1b 100644 --- a/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props +++ b/src/installer/pkg/sfx/Microsoft.NETCore.App/Directory.Build.props @@ -194,7 +194,6 @@ - diff --git a/src/mono/wasm/Makefile b/src/mono/wasm/Makefile index 4777abfb104c0..539547edd8214 100644 --- a/src/mono/wasm/Makefile +++ b/src/mono/wasm/Makefile @@ -144,7 +144,7 @@ icu-files: $(wildcard $(ICU_LIBDIR)/*.dat) $(ICU_LIBDIR)/libicuuc.a $(ICU_LIBDIR source-files: runtime/driver.c runtime/pinvoke.c runtime/corebindings.c runtime/binding_support.js runtime/dotnet_support.js runtime/library_mono.js $(SYSTEM_NATIVE_LIBDIR)/pal_random.js | $(NATIVE_BIN_DIR)/src cp $^ $(NATIVE_BIN_DIR)/src -header-files: runtime/pinvoke.h $(BUILDS_OBJ_DIR)/pinvoke-table.h | $(NATIVE_BIN_DIR)/include/wasm +header-files: runtime/pinvoke.h | $(NATIVE_BIN_DIR)/include/wasm cp $^ $(NATIVE_BIN_DIR)/include/wasm # Helper targets diff --git a/src/mono/wasm/build/WasmApp.targets b/src/mono/wasm/build/WasmApp.targets index 47b8347105b2e..c7d6f05066440 100644 --- a/src/mono/wasm/build/WasmApp.targets +++ b/src/mono/wasm/build/WasmApp.targets @@ -421,7 +421,6 @@ <_WasmPInvokeModules Include="libSystem.IO.Compression.Native" /> <_WasmPInvokeModules Include="libSystem.Globalization.Native" /> - -