Skip to content

🍒[cxx-interop] Make CxxShim header and modulemap arch-independent #66807

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
Jun 23, 2023

Conversation

egorzhdan
Copy link
Contributor

@egorzhdan egorzhdan commented Jun 21, 2023

Explanation: This moves libcxxshim.modulemap, libcxxshim.h and libcxxstdlibshim.h from *.xctoolchain/usr/lib/swift/macosx/arm64e to *.xctoolchain/usr/lib/swift/macosx 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.

rdar://110788977
(cherry picked from commit 4ce4527)

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

rdar://110788977
(cherry picked from commit 4ce4527)
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jun 21, 2023
@egorzhdan egorzhdan requested a review from a team as a code owner June 21, 2023 13:55
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan merged commit 9598e57 into release/5.9 Jun 23, 2023
@egorzhdan egorzhdan deleted the egorzhdan/5.9-arch-independent-cxxshim branch June 23, 2023 10:19
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