@@ -2166,10 +2166,12 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(lldb::LanguageType language,
2166
2166
}
2167
2167
2168
2168
if (!add_it) {
2169
- LOG_PRINTF (LIBLLDB_LOG_TYPES,
2170
- " process_one_module rejecting framework path \" %s\" "
2171
- " as it has no Headers or Modules subdirectories." ,
2172
- framework_path.c_str ());
2169
+ LOG_PRINTF (
2170
+ LIBLLDB_LOG_TYPES,
2171
+ " process_one_module(\" %s\" ) rejecting framework path \" %s\" "
2172
+ " as it has no \" Headers\" or \" Modules\" subdirectories." ,
2173
+ module_file.GetFilename ().AsCString (" " ),
2174
+ framework_path.c_str ());
2173
2175
}
2174
2176
2175
2177
if (add_it) {
@@ -2187,6 +2189,11 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(lldb::LanguageType language,
2187
2189
// SDK instead.
2188
2190
if (!StringRef (parent_path).startswith (" /System/Library" ) &&
2189
2191
!IsDeviceSupport (parent_path.c_str ()))
2192
+ LOG_PRINTF (LIBLLDB_LOG_TYPES,
2193
+ " process_one_module(\" %s\" ) adding framework path "
2194
+ " \" %s\" ." ,
2195
+ module_file.GetFilename ().AsCString (" " ),
2196
+ framework_path.c_str ());
2190
2197
framework_search_paths.push_back (
2191
2198
{std::move (parent_path), /* system*/ false });
2192
2199
}
@@ -2223,7 +2230,13 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(lldb::LanguageType language,
2223
2230
opts.ImportSearchPaths .end ());
2224
2231
for (const auto &fwsp : opts.FrameworkSearchPaths )
2225
2232
framework_search_paths.push_back ({fwsp.Path , fwsp.IsSystem });
2226
-
2233
+ if (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_TARGET))
2234
+ for (const std::string &arg : ast_context->GetClangArguments ()) {
2235
+ LOG_PRINTF (
2236
+ LIBLLDB_LOG_TYPES,
2237
+ " process_one_module(\" %s\" ) adding Clang argument \" %s\" ." ,
2238
+ module_file.GetFilename ().AsCString (" " ), arg.c_str ());
2239
+ }
2227
2240
swift_ast_sp->AddExtraClangArgs (ast_context->GetClangArguments ());
2228
2241
}
2229
2242
}
0 commit comments