Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs')
-rw-r--r--src/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs b/src/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs
index f292d54dc..eaa126b01 100644
--- a/src/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs
+++ b/src/System.Private.CoreLib/src/System/Globalization/GlobalizationMode.Unix.cs
@@ -13,12 +13,17 @@ namespace System.Globalization
bool invariantEnabled = false;
if (!invariantEnabled)
{
+ // WASM TODO: There's no WASM build of LibICU. We may be able to cross-compile it ourselves.
+#if WASM
+ return true;
+#else
if (Interop.Globalization.LoadICU() == 0)
{
string message = "Couldn't find a valid ICU package installed on the system. " +
"Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.";
Environment.FailFast(message);
}
+#endif // !WASM
}
return invariantEnabled;
}