Skip to content

Conversation

@jmschonfeld
Copy link
Contributor

We use @_silgen_name here to rename this symbol to use NSRange instead of (Int, Int) because the symbol was originally introduced with NSRange instead but we want to use (Int, Int) in source to avoid a dependency on NSRange. However, this current @_silgen_name causes issues when building the package in some environments because it uses "Foundation" as the module name (instead of "FoundationEssentials"). Since the package (and non-FOUNDATION_FRAMEWORK platforms) are not ABI stable and don't need to preserve the historic symbol name, we can just only apply @_silgen_name when building with FOUNDATION_FRAMEWORK to avoid conflicting definitions when ABI preservation is not required (while still preserving the ABI where it matters).

@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@glessard
Copy link
Contributor

glessard commented Dec 4, 2025

@swift-ci please test

…swift

Co-authored-by: Guillaume Lessard <glessard@tffenterprises.com>
@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld jmschonfeld merged commit 439b692 into swiftlang:main Dec 4, 2025
21 checks passed
@jmschonfeld jmschonfeld deleted the data/silgen-framework-only branch December 4, 2025 23:25
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