Skip to content

Commit 589a29b

Browse files
[wasm] Fix blazor/aot builds (#54653)
Backport of #54651 to release/6.0-preview6 `dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\6.0.0-preview.7.21321.15\Sdk\WasmApp.Native.targets(342,5): error : Could not find AOT cross compiler at $(_MonoAotCrossCompilerPath)=` Make sure this is set for the aot path. Co-authored-by: Ankit Jain <[email protected]>
1 parent 12c92e8 commit 589a29b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mono/wasm/build/WasmApp.Native.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,10 @@ EMSCRIPTEN_KEEPALIVE void mono_wasm_load_profiler_aot (const char *desc) { mono_
336336
-->
337337

338338
<Target Name="_WasmAotCompileApp" Condition="'$(RunAOTCompilation)' == 'true'">
339+
<PropertyGroup>
340+
<_MonoAotCrossCompilerPath>@(MonoAotCrossCompiler->WithMetadataValue('RuntimeIdentifier','browser-wasm'))</_MonoAotCrossCompilerPath>
341+
</PropertyGroup>
342+
339343
<Error Condition="'@(_WasmAssembliesInternal)' == ''" Text="Item _WasmAssembliesInternal is empty" />
340344
<Error Condition="'$(_IsEMSDKMissing)' == 'true'"
341345
Text="$(_EMSDKMissingErrorMessage) Emscripten SDK is required for AOT'ing assemblies." />

0 commit comments

Comments
 (0)