Skip to content

Commit d9a7132

Browse files
committed
fix: Adjust emscripten version
1 parent d6fd9c9 commit d9a7132

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@
117117
<_targetEMSDKPath>$(USERPROFILE)\.uno\emsdk\$([System.IO.Path]::GetFileName('$(_emsdkOriginalPackagePath)'))</_targetEMSDKPath>
118118
</PropertyGroup>
119119

120+
<PropertyGroup>
121+
<!-- We cannot yet use EmscriptenVersion: https://github.com/dotnet/runtime/issues/108972 -->
122+
<_UnoEmscriptenVersion>$([System.Text.RegularExpressions.Regex]::Match($(_emsdkOriginalPackagePath), 'Microsoft\.NET\.Runtime\.Emscripten\.(?&lt;Version>\d+(\.\d+)*)\.Sdk').Groups['Version'].Value)</_UnoEmscriptenVersion>
123+
</PropertyGroup>
124+
120125
<MakeDir Directories="$([System.IO.Path]::GetDirectoryName('$(_targetEMSDKPath)'))" />
121126

122127
<Exec Command="mklink /J &quot;$(_targetEMSDKPath)&quot; &quot;$(EmscriptenSdkToolsPath)..\tools\&quot;"
@@ -290,7 +295,7 @@
290295
AOTProfileExcludedMethods="$(WasmShellAOTProfileExcludedMethods)"
291296
Assets="@(ContentWithTargetPath);@(_UnoWasmCopyToOutputAssets)"
292297
CurrentProjectPath="$(MSBuildProjectDirectory)"
293-
EmscriptenVersion="$(EmscriptenVersion)"
298+
EmscriptenVersion="$(_UnoEmscriptenVersion)"
294299
EnableThreads="@(WasmEnableThreads)"
295300
GenerateAOTProfile="$(WasmShellGenerateAOTProfile)"
296301
GenerateAOTProfileDebugList="$(WasmShellGenerateAOTProfileDebugList)"

0 commit comments

Comments
 (0)