Skip to content

Commit daf3274

Browse files
authored
Merge pull request #906 from unoplatform/dev/jela/emsdk-ver
fix: Adjust emscripten version
2 parents d6fd9c9 + 2ff0cc1 commit daf3274

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@
107107
</ItemGroup>
108108
</Target>
109109

110+
<Target Name="_UnoAdjustEmscriptenVersion"
111+
BeforeTargets="_SetupEmscripten;_WorkaroundEmscriptenPathLength">
112+
113+
<PropertyGroup>
114+
<!-- We cannot yet use EmscriptenVersion: https://github.com/dotnet/runtime/issues/108972 -->
115+
<_UnoEmscriptenVersion>$([System.Text.RegularExpressions.Regex]::Match($(EmscriptenSdkToolsPath), 'Microsoft\.NET\.Runtime\.Emscripten\.(?&lt;Version>\d+(\.\d+)*)\.Sdk').Groups['Version'].Value)</_UnoEmscriptenVersion>
116+
</PropertyGroup>
117+
</Target>
110118

111119
<Target Name="_WorkaroundEmscriptenPathLength"
112120
Condition=" '$(OS)' == 'Windows_NT' "
@@ -290,7 +298,7 @@
290298
AOTProfileExcludedMethods="$(WasmShellAOTProfileExcludedMethods)"
291299
Assets="@(ContentWithTargetPath);@(_UnoWasmCopyToOutputAssets)"
292300
CurrentProjectPath="$(MSBuildProjectDirectory)"
293-
EmscriptenVersion="$(EmscriptenVersion)"
301+
EmscriptenVersion="$(_UnoEmscriptenVersion)"
294302
EnableThreads="@(WasmEnableThreads)"
295303
GenerateAOTProfile="$(WasmShellGenerateAOTProfile)"
296304
GenerateAOTProfileDebugList="$(WasmShellGenerateAOTProfileDebugList)"

0 commit comments

Comments
 (0)