Skip to content

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