-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cxx-interop][SwiftCompilerSources] Use swift::SourceLoc
instead of BridgedSourceLoc
#58699
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
Conversation
@swift-ci please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
369fd61
to
6ce6537
Compare
@swift-ci please smoke test |
6ce6537
to
af51419
Compare
@@ -20,6 +20,8 @@ private extension Target { | |||
"-Xfrontend", "-enable-cxx-interop", | |||
// Bridging modules and headers | |||
"-Xcc", "-I", "-Xcc", "../include", | |||
// LLVM modules and headers | |||
"-Xcc", "-I", "-Xcc", "../../llvm-project/llvm/include", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also added the LLVM include paths to the SwiftPM manifest.
@swift-ci please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woohoo! This is awesome! 🥳
af51419
to
41e6303
Compare
(just rebased to prepare for landing) |
@swift-ci please smoke test |
41e6303
to
6aef407
Compare
@swift-ci please smoke test |
6aef407
to
3ae3cc4
Compare
@swift-ci please smoke test |
@swift-ci please smoke test macOS |
@egorzhdan This assert you see is an actual issue - name lookup finds |
No worries! If you need any help with Sema, let me know! |
3ae3cc4
to
18b8db4
Compare
@swift-ci please smoke test |
… `BridgedSourceLoc` C++ interop is now enabled in SwiftCompilerSources, so we can remove some of the C bridging layer and use C++ classes directly from Swift. rdar://83361087
…aths This allows the Swift compiler to find headers like `llvm/Support/Compiler.h` that are used by Swift headers.
18b8db4
to
5768aeb
Compare
@swift-ci please smoke test |
C++ interop is now enabled in SwiftCompilerSources, so we can remove some of the C bridging layer and use C++ classes directly from Swift.
rdar://83361087