Skip to content

Commit

Permalink
chore: Include AOT workaround for net9 wasn
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored Sep 20, 2024
1 parent fd322bc commit dc6bacc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Uno.Sdk/targets/Uno.Common.Wasm.targets
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@
<SdkSupportedTargetPlatformIdentifier Include="browserwasm" DisplayName="BrowserWasm" />
</ItemGroup>

<!--
Duplicate backwards compatibility with:
https://github.com/unoplatform/Uno.Wasm.Bootstrap/blob/f0cb358c25d3048680c8dd3d15e455aa5d13b532/src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets#L59
This is required because the evaluation of props/targets files from the SDK discards imports of
the AOT compiler if RunAOTCompilation is not set ahead of time, and the bootstrapper cannot set
that propery if it's not an SDK.
-->
<PropertyGroup Condition=" '$(WasmShellMonoRuntimeExecutionMode)' == 'InterpreterAndAOT' AND '$(WasmShellGenerateAOTProfile)' != 'true' ">
<RunAOTCompilation>true</RunAOTCompilation>
<WasmBuildNative>true</WasmBuildNative>
</PropertyGroup>

<Target Name="_UnoRemoveWebSdkConfigContent"
Condition=" '$(UnoDisableRemoveWebSdkConfigContent)' != 'true' "
BeforeTargets="BeforeBuild;CheckForDuplicateItems">
Expand Down

0 comments on commit dc6bacc

Please sign in to comment.