-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[cxx-interop] Refer to SwiftBridging
module from usr/include/module.modulemap
#72186
Conversation
…e.modulemap` The recent Clang compiler change makes `-fno-modulemap-allow-subdirectory-search` the default behavior. This means that projects that use C++ interop and `#include <swift/bridging>` no longer compile, since Clang won't search for the SwiftBridging module under `usr/include/swift` anymore. This change adds a new modulemap file to be installed at `toolchain/usr/include/module.modulemap`. This modulemap is under a default Clang include search path, which will make sure Clang can discover the SwiftBridging module. rdar://123334601
@swift-ci please smoke test |
@swift-ci please test |
@swift-ci please build toolchain macOS |
For the record, upon seeing By the way, this approach works with a test project too. |
@swift-ci please smoke test |
@swift-ci please test |
@swift-ci please build toolchain macOS |
…tter testability rdar://123334601
560d792
to
d494632
Compare
@swift-ci please smoke test |
@swift-ci please test |
@swift-ci please build toolchain macOS |
swiftlang/swift-installer-scripts#282 @swift-ci please build toolchain Windows platform |
swiftlang/swift-installer-scripts#282 @swift-ci please test Windows |
@swift-ci please test macOS |
The recent Clang compiler change makes
-fno-modulemap-allow-subdirectory-search
the default behavior. This means that projects that use C++ interop and#include <swift/bridging>
no longer compile, since Clang won't search for the SwiftBridging module underusr/include/swift
anymore.This change adds a new modulemap file to be installed at
toolchain/usr/include/module.modulemap
. This modulemap is under a default Clang include search path, which will make sure Clang can discover the SwiftBridging module.rdar://123334601