Skip to content

Add support for compiler-managed CFSTR() on non-Darwin systems #1735

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 3 commits into from
Oct 27, 2018
Merged

Add support for compiler-managed CFSTR() on non-Darwin systems #1735

merged 3 commits into from
Oct 27, 2018

Conversation

millenomi
Copy link
Contributor

@millenomi millenomi commented Oct 26, 2018

This gets the swift-corelibs-foundation implementation closer to the Darwin implementation by making the compiler lay out constant CFStrings produced by CFSTR(). It requires a corresponding clang patch to work.

This is only enabled for not-TARGET_OS_MAC for now, since the clang used to build Swift here is not the same as the one used by Xcode when using a Swift toolchain. When Xcode gets the new clang, we can enable this for TARGET_OS_MAC as well.

rdar://42898576

@millenomi
Copy link
Contributor Author

Please test with this pull request:
apple/swift-clang#213

@swift-ci please test

@millenomi
Copy link
Contributor Author

Please test with this pull request:
apple/swift-clang#213

@swift-ci please test

@millenomi
Copy link
Contributor Author

Please test with this pull request:
apple/swift-clang#213

@swift-ci please test

@millenomi
Copy link
Contributor Author

Ready to merge whenever the clang change is.

@millenomi millenomi merged commit 99e2421 into swiftlang:master Oct 27, 2018
@millenomi millenomi deleted the cfstr branch October 27, 2018 22:40
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