Skip to content

Commit

Permalink
fix: Ensure that build native is set with native references
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored Oct 26, 2024
1 parent 48dd61e commit 5e842b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,16 @@
<WasmAotProfilePath>$([System.IO.Path]::GetFullPath($(_FilteredAotProfile)))</WasmAotProfilePath>
</PropertyGroup>

<PropertyGroup>

<!-- if we found native references, let's enable wasm native build as well -->
<WasmBuildNative Condition="
$(WasmBuildNative) == ''
AND @(NativeFileReference->Count()) > 0"
>true</WasmBuildNative>

</PropertyGroup>

</Target>

<Target Name="GenerateUnoWasmAssets"
Expand Down

0 comments on commit 5e842b6

Please sign in to comment.