Skip to content

🍒[cxx-interop] Do not import std::__compressed_pair #78758

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
Feb 11, 2025

Conversation

egorzhdan
Copy link
Contributor

@egorzhdan egorzhdan commented Jan 20, 2025

Explanation: This type is triggering modularization issues in libc++:

error: definition of '__builtin_new_deleter' must be imported from module 'std_private_memory_builtin_new_allocator' before it is required

This is a workaround to keep things building.

Risk: Low, this only affects import of one specific C++ type.
Issue: rdar://142576799
Reviewer: @Xazax-hun

Original PR: #78696

This type is triggering modularization issues in libc++:
```
error: definition of '__builtin_new_deleter' must be imported from module 'std_private_memory_builtin_new_allocator' before it is required
```

This is a workaround to keep things building.

rdar://142576799
(cherry picked from commit cb2bd32)
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jan 20, 2025
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan marked this pull request as ready for review January 24, 2025 13:02
@egorzhdan egorzhdan requested a review from a team as a code owner January 24, 2025 13:02
@egorzhdan
Copy link
Contributor Author

@swift-ci please test Windows

@egorzhdan egorzhdan merged commit 5e79d63 into release/6.1 Feb 11, 2025
5 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/6.1-compressed-pair branch February 11, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants