Skip to content

Commit 5e842b6

Browse files
authored
fix: Ensure that build native is set with native references
1 parent 48dd61e commit 5e842b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,16 @@
320320
<WasmAotProfilePath>$([System.IO.Path]::GetFullPath($(_FilteredAotProfile)))</WasmAotProfilePath>
321321
</PropertyGroup>
322322

323+
<PropertyGroup>
324+
325+
<!-- if we found native references, let's enable wasm native build as well -->
326+
<WasmBuildNative Condition="
327+
$(WasmBuildNative) == ''
328+
AND @(NativeFileReference->Count()) > 0"
329+
>true</WasmBuildNative>
330+
331+
</PropertyGroup>
332+
323333
</Target>
324334

325335
<Target Name="GenerateUnoWasmAssets"

0 commit comments

Comments
 (0)