-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Select libraries using the ICU build time version #79259
Conversation
if CLR_USE_ICU_BUILD_TIME_VERSION environment variable is set, select libraries using ICU build time version.
Tagging subscribers to this area: @dotnet/area-system-globalization Issue Detailsif CLR_USE_ICU_BUILD_TIME_VERSION environment variable is set, select libraries using ICU build time version.
|
This is very niche use case. If you know that you have the exact ICU version installed as the runtime build (which is not very likely, as the official build takes place on a CentOS7 machine for compat), you can already use |
One source code can be built on the multiple build environment, and the ICU version can be different for each build environment. If you set environment "CLR_USE_ICU_BUILD_TIME_VERSION=true", this patch works. |
It is the case when we know that the system has the same version installed as the runtime build, right? If so, then we should also be able to find out which version it was (e.g. in a distro's manifest file) and we can set the existing |
Mistakes can be occur if we manually specify the ICU version every time when the build environment changes. How about follow Android case? It try to load ICU without version number. (
Linux also provides unversioned ibrary (symlink). |
This is only the build time library (from a dev package), not the runtime one. The runtime libraries are always versioned. As for this PR, how about allowing the existing |
It would be good to use "CLR_ICU_VERSION_OVERRIDE" environment variable. I'll make a patch for it soon. |
If "build" is set to CLR_ICU_VERSION_OVERRIDE environment variable, use build time ICU version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@tarekgh The failed checks are not related to this patch. |
@wscho77 thanks for your contribution here. |
if CLR_USE_ICU_BUILD_TIME_VERSION environment variable is set, select libraries using ICU build time version.