Skip to content
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

[CMake] Make sure that library evolution is set when compiling overlays. #34371

Conversation

varungandhi-apple
Copy link
Contributor

@varungandhi-apple varungandhi-apple commented Oct 21, 2020

If library evolution is not set, the generated swiftinterface will be incorrect, leading to further errors downstream.

In direct CMake calls to stdlib/public/Platform/CMakeLists.txt, the variable SWIFT_STDLIB_STABLE_ABI is not initialized. For now, we duplicate the logic in stdlib/CMakeLists.txt to make sure that it is initialized properly. We can potentially de-duplicate it later. So we add some initialization in StandaloneOverlay.cmake which is consumed by stdlib/public/Platform/CMakeLists.txt, mimicking the "duplicate" initialization we already have for SWIFT_ENABLE_MODULE_INTERFACES.

Fixes rdar://70156840.

In practice, SWIFT_HOST_VARIANT_SDK may be IOS or some other non-OSX
Darwin platform.

Fixes part of rdar://70156840.
@varungandhi-apple
Copy link
Contributor Author

cc @porglezomp

@varungandhi-apple
Copy link
Contributor Author

@swift-ci please smoke test

@lorentey lorentey requested a review from edymtt October 21, 2020 03:24
@varungandhi-apple
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Member

@lorentey lorentey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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.

None yet

3 participants