Allow the icu native code to be linked out when invariant globalization is enabled...
authorZoltan Varga <vargaz@gmail.com>
Tue, 16 Feb 2021 00:25:56 +0000 (19:25 -0500)
committerGitHub <noreply@github.com>
Tue, 16 Feb 2021 00:25:56 +0000 (19:25 -0500)
commit2e36f1b3a81a2d43d0c0d3597a7ead1bcda35a27
tree057c93b333926cb744fc184f19a9cd97792df76f
parent56d0eb94ec83473d99c1050072a224da327bc02a
Allow the icu native code to be linked out when invariant globalization is enabled. (#48120)

* Disable the dynamic loading of icu functions on WASM.

* Preserve GetICUVersion using a DynamicDependency attribute so its only preserved for the tests which need it.

* Add GetICUVersion to .LibraryBuild.xml so its retained during the class libs build.

* Set InvariantGlobalization based on WasmInvariantGlobalization.

* Fix the framework build.

* Avoid linking in the libicu libraries on wasm in invariant mode.

* Move ICU tests dependency to libraries build descriptor file

* Hook up the shared file in the build

* Fix conditionals.

* Remove WasmInvariantGlobalization msbuild variable.

Co-authored-by: Marek Safar <marek.safar@gmail.com>
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.Shared.xml
src/libraries/System.Private.CoreLib/src/ILLink/ILLinkTrim_LibraryBuild.xml [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/mono/CMakeLists.txt
src/mono/wasm/build/WasmApp.targets