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 e01cf16aae410c..bc114a7ec5c1bb 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 4777abfb104c00..539547edd8214c 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 287f963beabd76..1ed6c9583b0594 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" /> - + + <_EmccIncludePaths Include="$(_WasmIntermediateOutputPath.TrimEnd('\/'))" /> + <_EmccIncludePaths Include="$(_WasmRuntimePackIncludeDir)mono-2.0" /> + <_EmccIncludePaths Include="$(_WasmRuntimePackIncludeDir)wasm" /> + + $(EmccFlags) -DCORE_BINDINGS -DGEN_PINVOKE=1 + $(EmccCFlags) @(_EmccIncludePaths -> '"-I%(Identity)"', ' ') $(EmccCFlags) -g - - $(EmccCFlags) "-I$(_WasmIntermediateOutputPath)." - $(EmccCFlags) "-I$(_WasmIntermediateOutputPath)" - - $(EmccCFlags) "-I$(_WasmRuntimePackIncludeDir)mono-2.0" "-I$(_WasmRuntimePackIncludeDir)wasm" - $(EmccFlags) -s TOTAL_MEMORY=536870912 <_WasmOptCommand>$([MSBuild]::NormalizePath('$(EmSdkUpstreamBinPath)', 'wasm-opt$(_ExeExt)')) diff --git a/src/mono/wasm/wasm.proj b/src/mono/wasm/wasm.proj index 9da59085876f43..8bd6c8616fb63f 100644 --- a/src/mono/wasm/wasm.proj +++ b/src/mono/wasm/wasm.proj @@ -180,7 +180,7 @@ Lines="$(ActualEmccVersion)" Overwrite="true" /> -