Skip to content

Commit f8675cc

Browse files
authored
Merge pull request #954 from unoplatform/dev/jela/emcc-prof
fix: Adjust `WasmShellEnableEmccProfiling` support
2 parents 4190eb9 + 5a73c98 commit f8675cc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,4 +410,21 @@
410410

411411
</Target>
412412

413+
<PropertyGroup>
414+
<UnoEnableEmccProfiling_BeforeTargets>
415+
$(UnoEnableEmccProfiling_BeforeTargets);
416+
_WasmCommonPrepareForWasmBuildNative;
417+
</UnoEnableEmccProfiling_BeforeTargets>
418+
</PropertyGroup>
419+
420+
<Target Name="UnoEnableEmccProfiling"
421+
BeforeTargets="$(UnoEnableEmccProfiling_BeforeTargets)"
422+
Condition=" '$(WasmShellEnableEmccProfiling)' == 'true' ">
423+
<PropertyGroup>
424+
<!-- Enable debug symbols for release mode to profiling -->
425+
<WasmNativeStrip>false</WasmNativeStrip>
426+
<WasmNativeDebugSymbols>true</WasmNativeDebugSymbols>
427+
</PropertyGroup>
428+
</Target>
429+
413430
</Project>

0 commit comments

Comments
 (0)