From 5ffacddc209105bdd848750080d1c4e967114d0b Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Fri, 26 Mar 2021 18:27:30 -0400 Subject: [PATCH] [wasm] Fix order of include paths, to have the obj dir first this regressed recently, and we started using `pinvoke-table.h`, and `icall-table.h` from the runtime pack instead of from the obj dir. --- src/mono/wasm/build/WasmApp.targets | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/mono/wasm/build/WasmApp.targets b/src/mono/wasm/build/WasmApp.targets index 44b256bf2f726..8a8307f406c5c 100644 --- a/src/mono/wasm/build/WasmApp.targets +++ b/src/mono/wasm/build/WasmApp.targets @@ -464,18 +464,17 @@ + + <_EmccIncludePaths Include="$(_WasmIntermediateOutputPath.TrimEnd('\/'))" /> + <_EmccIncludePaths Include="$(_WasmIncludeDir)mono-2.0" /> + <_EmccIncludePaths Include="$(_WasmIncludeDir)wasm" /> + + - $(EmccFlags) -DCORE_BINDINGS -DGEN_PINVOKE=1 "-I$(_WasmIncludeDir)mono-2.0" "-I$(_WasmIncludeDir)wasm" + $(EmccFlags) -DCORE_BINDINGS -DGEN_PINVOKE=1 + $(EmccCFlags) @(_EmccIncludePaths -> '"-I%(Identity)"', ' ') $(EmccCFlags) -g - - $(EmccCFlags) "-I$(_WasmIntermediateOutputPath)." - $(EmccCFlags) "-I$(_WasmIntermediateOutputPath)" - $(EmccFlags) -s TOTAL_MEMORY=536870912 <_WasmOptCommand>$([MSBuild]::NormalizePath('$(EmSdkUpstreamBinPath)', 'wasm-opt$(_ExeExt)'))