Skip to content

Demangling: correct build for the runtime #83576

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
Aug 7, 2025

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Aug 6, 2025

Fix up some whitespace in the CMakeLists.txt to match the rest of the build system. Most importantly, define SWIFT_RUNTIME to avoid ODR violations in the runtime build.

@compnerd
Copy link
Member Author

compnerd commented Aug 6, 2025

@swift-ci please smoke test

Copy link
Member

@etcwilde etcwilde left a comment

Choose a reason for hiding this comment

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

The actual change itself is fine. I don't agree with the formatting changes though.

This is required to ensure that we do not get ODR violations due to
LLVMSupport being linked in with multiple definitions. We would
previously miscompile the library resulting in a mixed signature
containing both `__swift::runtime::llvm::` and `::llvm::` versions of
`StringRef`.
@compnerd
Copy link
Member Author

compnerd commented Aug 6, 2025

@swift-ci please smoke test

@compnerd compnerd requested a review from etcwilde August 6, 2025 23:05
@compnerd
Copy link
Member Author

compnerd commented Aug 7, 2025

@swift-ci please smoke test macOS platform

@compnerd compnerd merged commit 36246a2 into swiftlang:main Aug 7, 2025
3 checks passed
@compnerd compnerd deleted the namespace branch August 7, 2025 19:54
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