Skip to content

[build] Explicitly pass ICU_DATA_LIBRARY when building foundation #41041

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 27, 2022

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Jan 27, 2022

When building Foundation statically, we weren't passing icuucswift or icudataswift as dependencies. Doing so, icuucswift gets it's import location working as intended because we were already passing ICU_UC_LIBRARY here in the build-script-impl, but icudataswift was not being passed, so when we were looking at where we import it from the location was the default icu in the system rather than the data library we just built. Explicitly pass the location of the data library to Foundation.

Partially resolves: https://bugs.swift.org/browse/SR-15770 relies on swiftlang/swift-corelibs-foundation#3133

@Azoy
Copy link
Contributor Author

Azoy commented Jan 27, 2022

swiftlang/swift-corelibs-foundation#3133

@swift-ci please build toolchain

@Azoy
Copy link
Contributor Author

Azoy commented Jan 27, 2022

@swift-ci please smoke test

@swift-ci
Copy link
Contributor

Linux Toolchain (Ubuntu 20.04)
Download Toolchain
Git Sha - 5aa8866

Install command
tar zxf swift-PR-41041-800-ubuntu20.04.tar.gz
More info

@Azoy Azoy merged commit 4df4f97 into swiftlang:main Jan 27, 2022
@Azoy Azoy deleted the fix-icu-static-linking branch January 27, 2022 23:57
Azoy added a commit to Azoy/swift that referenced this pull request Feb 7, 2022
[build] Explicitly pass ICU_DATA_LIBRARY when building foundation
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.

3 participants