@@ -1336,7 +1336,6 @@ static bool DeserializeAllCompilerFlags(SwiftASTContext &swift_ast,
1336
1336
bool &found_swift_modules) {
1337
1337
Log *log (lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_TYPES));
1338
1338
bool found_validation_errors = false ;
1339
- std::string last_sdk_path;
1340
1339
got_serialized_options = false ;
1341
1340
auto &invocation = swift_ast.GetCompilerInvocation ();
1342
1341
auto ast_file_datas = module .GetASTData (eLanguageTypeSwift);
@@ -1375,16 +1374,11 @@ static bool DeserializeAllCompilerFlags(SwiftASTContext &swift_ast,
1375
1374
StringRef moduleData = buf.substr (0 , info.bytes );
1376
1375
got_serialized_options |=
1377
1376
DeserializeCompilerFlags (invocation, moduleData, info.name , error);
1378
- LOG_PRINTF (LIBLLDB_LOG_TYPES, " SDK path from module \" %s\" is \" %s\" ." ,
1377
+ LOG_PRINTF (LIBLLDB_LOG_TYPES, " SDK path from module \" %s\" was \" %s\" ." ,
1379
1378
info.name .str ().c_str (),
1380
1379
invocation.getSDKPath ().str ().c_str ());
1381
- if (!last_sdk_path.empty ()) {
1382
- // Always let the more specific SDK path win.
1383
- if (invocation.getSDKPath () != last_sdk_path)
1384
- if (last_sdk_path.size () > invocation.getSDKPath ().size ())
1385
- invocation.setSDKPath (last_sdk_path);
1386
- }
1387
- last_sdk_path = invocation.getSDKPath ();
1380
+ // We will deduce a matching SDK path from DWARF later.
1381
+ invocation.setSDKPath (" " );
1388
1382
}
1389
1383
}
1390
1384
LOG_PRINTF (LIBLLDB_LOG_TYPES, " Picking SDK path \" %s\" ." ,
0 commit comments