-
Notifications
You must be signed in to change notification settings - Fork 333
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
[lldb][cxx-interop] Populate C++ stdlib options correctly #10084
base: stable/20240723
Are you sure you want to change the base?
Conversation
@swift-ci please test |
Is this needed in the swift/release/6.1 branch, too? |
@@ -2560,6 +2560,7 @@ SwiftASTContext::CreateInstance(lldb::LanguageType language, Module &module, | |||
|
|||
swift_ast_sp->InitializeSearchPathOptions(module_search_paths, | |||
framework_search_paths); | |||
swift_ast_sp->GetCompilerInvocation().computeCXXStdlibOptions(); |
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.
What information does this function depend on? Would it make sense to sink this into InitializeSearchPathOptions/ConfigureResourceDirs/SetCompilerInvocationLLDBOverrides?
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.
Sounds good, I moved this into InitializeSearchPathOptions
.
computeCXXStdlibOptions
depends on the ClangImporter options and on the SDK/search path being configured.
Also, thanks, this is great! :-) |
I think it would be needed, yes. I'll put up a separate PR for the release branch. |
This fixes errors printed by lldb: ``` error: module 'XYZ' was built with libc++, but current compilation uses unknown C++ stdlib ``` rdar://144894619
1bb5831
to
24bff50
Compare
@swift-ci please test |
Looks like the test failures are unrelated. |
This fixes errors printed by lldb:
rdar://144894619