-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasi] Enabling icu in wasi.proj breaks tests #81560
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsBased on #81052 With this patch to include the icu files in the runtime pack: diff --git a/src/mono/wasi/wasi.proj b/src/mono/wasi/wasi.proj
index 836c68ae497..6ee8c2ccbb5 100644
--- a/src/mono/wasi/wasi.proj
+++ b/src/mono/wasi/wasi.proj
@@ -7,8 +7,8 @@
<PropertyGroup>
<!-- TODOWASI: icu support -->
- <!--<ICULibDir Condition="'$(MonoWasmThreads)' != 'true'">$([MSBuild]::NormalizeDirectory('$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)', 'runtimes', 'wasi-wasm', 'native', 'lib'))</ICULibDir>-->
- <!--<ICULibDir Condition="'$(MonoWasmThreads)' == 'true'">$([MSBuild]::NormalizeDirectory('$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)', 'runtimes', 'wasi-wasm-threads', 'native', 'lib'))</ICULibDir>-->
+ <ICULibDir Condition="'$(MonoWasmThreads)' != 'true'">$([MSBuild]::NormalizeDirectory('$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)', 'runtimes', 'wasi-wasm', 'native', 'lib'))</ICULibDir>
+ <ICULibDir Condition="'$(MonoWasmThreads)' == 'true'">$([MSBuild]::NormalizeDirectory('$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)', 'runtimes', 'wasi-wasm-threads', 'native', 'lib'))</ICULibDir>
<WasmEnableSIMD Condition="'$(WasmEnableSIMD)' == ''">false</WasmEnableSIMD>
<FilterSystemTimeZones Condition="'$(FilterSystemTimeZones)' == ''">false</FilterSystemTimeZones>
<WasmObjDir>$(ArtifactsObjDir)wasm</WasmObjDir>
@@ -148,10 +148,10 @@
DependsOnTargets="GenerateWasiPropsAndRspFiles;GenerateManagedToNative;BundleTimeZones">
<ItemGroup>
- <!--<ICULibNativeFiles Include="$(ICULibDir)/libicuuc.a;-->
- <!--$(ICULibDir)/libicui18n.a;-->
- <!--$(ICULibDir)/libicudata.a" />-->
- <!--<ICULibFiles Include="$(ICULibDir)/*.dat" />-->
+ <ICULibNativeFiles Include="$(ICULibDir)/libicuuc.a;
+ $(ICULibDir)/libicui18n.a;
+ $(ICULibDir)/libicudata.a" />
+ <ICULibFiles Include="$(ICULibDir)/*.dat" />
</ItemGroup>
<PropertyGroup>
<PInvokeTableFile>$(ArtifactsObjDir)wasm/pinvoke-table.h</PInvokeTableFile> .. building a test project with:
|
Will close once icu packages will be updated and tested on runtime. |
Based on #81052
With this patch to include the icu files in the runtime pack:
.. building a test project with:
./dotnet.sh build /bl src/libraries/System.Buffers/tests/System.Buffers.Tests.csproj /p:Configuration=Release /p:TargetOS=wasi / p:TargetArchitecture=wasm /t:Test -p:WasmBuildNative=true -p:EnableAggressiveTrimming=true
fails with:cc @pavelsavara @mkhamoyan
The text was updated successfully, but these errors were encountered: