diff --git a/src/mono/wasi/build/WasiApp.Native.targets b/src/mono/wasi/build/WasiApp.Native.targets index 34ada49a624b36..882ea43c974704 100644 --- a/src/mono/wasi/build/WasiApp.Native.targets +++ b/src/mono/wasi/build/WasiApp.Native.targets @@ -156,6 +156,9 @@ + + + <_WasmCommonIncludePaths Include="$(_WasmIntermediateOutputPath.TrimEnd('\/'))" /> <_WasmCommonIncludePaths Include="$(_WasmRuntimePackIncludeDir)mono-2.0" /> <_WasmCommonIncludePaths Include="$(_WasmRuntimePackIncludeDir)wasm" /> @@ -410,13 +413,7 @@ - - - + @@ -434,9 +431,9 @@ WriteOnlyWhenDifferent="true" /> - - + + <_WasiClangXLinkerFlags Include="--initial-memory=$(WasmInitialHeapSize)" /> <_WasmNativeFileForLinking Include="@(NativeFileReference)" /> @@ -445,6 +442,8 @@ <_WasiFilePathForFixup Include="@(_WasiObjectFilesForBundle)" /> <_WasiFilePathForFixup Include="@(_WasmNativeFileForLinking)" /> + <_WasmLinkDependencies Include="@(_WasiFilePathForFixup)" /> + <_WasiSdkClangArgs Condition="'$(OS)' == 'Windows_NT'" Include=""$([System.String]::new(%(_WasiFilePathForFixup.Identity)).Replace('\', '/'))"" /> <_WasiSdkClangArgs Condition="'$(OS)' != 'Windows_NT'" Include="@(_WasiFilePathForFixup -> '"%(Identity)"')" /> @@ -460,7 +459,18 @@ <_WasiSdkClangArgs Include="-o "$(_WasmOutputFileName.Replace('\', '/'))"" /> - + + + <_WasmLinkDependencies Include="$(_WasiClangLinkRsp)" /> + + + + + @@ -614,5 +624,5 @@ - +