Skip to content

build: allow static linking against ICU data #3129

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

Merged
merged 1 commit into from
Jan 25, 2022

Conversation

compnerd
Copy link
Member

With the removal of the ICU data dependency in swiftCore, it is now
possible to statically link to the ICU, with static linking to the
ICU data as well. This would allow us to remove the ICU dependency
from leaking into distributions which was previously required due to
the oversized cost of the ICU data. With the single use now, it is
possible to statically link the data to avoid the distribution and
packaging. In order to provide a migration path, this needs to be
optionalised, and as such, we only link the data if it is found (and
can be controlled through -D ICU_DATA_LIBRARY_RELEASE=

With the removal of the ICU data dependency in swiftCore, it is now
possible to statically link to the ICU, with static linking to the
ICU data as well.  This would allow us to remove the ICU dependency
from leaking into distributions which was previously required due to
the oversized cost of the ICU data.  With the single use now, it is
possible to statically link the data to avoid the distribution and
packaging.  In order to provide a migration path, this needs to be
optionalised, and as such, we only link the data if it is found (and
can be controlled through `-D ICU_DATA_LIBRARY_RELEASE=`
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test macOS platform

@compnerd
Copy link
Member Author

Tested on Windows CI: https://dev.azure.com/compnerd/swift-build/_build/results?buildId=56360&view=results

That test simply indicates that dynamic linking still works after the change. Actually changing to static linking is something that will need to be done subsequently.

@compnerd compnerd merged commit b8a67da into swiftlang:main Jan 25, 2022
@compnerd compnerd deleted the i-see-you-statically branch January 25, 2022 18:35
@tomerd
Copy link

tomerd commented Jan 25, 2022

cc @drexin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants