File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lldb/source/Plugins/TypeSystem/Swift Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3037,6 +3037,7 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(
30373037 // perform implicit Clang module imports. They will always use the SDK
30383038 // version as deployment target, even if that is in the future. To
30393039 // avoid building modules twice, match this behavior.
3040+ auto &ci_args = swift_ast_sp->GetClangImporterOptions ().ExtraArgs ;
30403041 auto darwin_sdk_info = clang::parseDarwinSDKInfo (
30413042 *llvm::vfs::getRealFileSystem (), swift_ast_sp->GetPlatformSDKPath ());
30423043 if (!darwin_sdk_info)
@@ -3045,10 +3046,11 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(
30453046 auto sdk_triple = triple;
30463047 sdk_triple.setOSName (std::string (triple.getOSTypeName (triple.getOS ())) +
30473048 (*darwin_sdk_info)->getVersion ().getAsString ());
3048- auto &ci_args = swift_ast_sp->GetClangImporterOptions ().ExtraArgs ;
30493049 ci_args.push_back (" -target" );
30503050 ci_args.push_back (sdk_triple.str ());
30513051 }
3052+ ci_args.push_back (" -gmodules" );
3053+ ci_args.push_back (" -g" );
30523054 }
30533055
30543056 std::vector<swift::PluginSearchOption> plugin_search_options;
You can’t perform that action at this time.
0 commit comments