Skip to content

🍒[cxx-interop] Make libstdc++ header and modulemap arch-independent #66878

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

Closed

Conversation

egorzhdan
Copy link
Contributor

@egorzhdan egorzhdan commented Jun 23, 2023

Explanation: This moves libstdcxx.modulemap and libstdcxx.h from *.xctoolchain/usr/lib/swift/linux/x86_64 to *.xctoolchain/usr/lib/swift/linux to simplify distribution.
Scope: This simplifies the CMake build scripts to ignore the architecture for these headers, and adjusts the compiler logic used to discover the headers.
Risk: Medium, this alters the distribution of the toolchain headers on Linux.

Original PR: #66855
This is a follow-up to #66807

rdar://110788977
(cherry picked from commit 3e28a7c)

This moves `libstdcxx.modulemap` and `libstdcxx.h` from `*.xctoolchain/usr/lib/swift/macosx/arm64e` to `*.xctoolchain/usr/lib/swift/macosx` to simplify distribution.

rdar://110788977
(cherry picked from commit 3e28a7c)
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jun 23, 2023
@egorzhdan egorzhdan requested a review from a team as a code owner June 23, 2023 11:18
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

This doesn't seem to be necessary in 5.9.

@egorzhdan egorzhdan closed this Oct 24, 2023
@egorzhdan egorzhdan deleted the egorzhdan/5.9-arch-independent-libstdcxx branch October 24, 2023 13:27
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.

2 participants