Merge pull request #78303 from ian-twilightcoder/clang-importer-search-paths

[ClangImporter] clang's -iframework comes before builtin usr/local/include, but Swift's -Fsystem comes after
This commit is contained in:
Ian Anderson
2025-01-06 13:05:25 -08:00
committed by GitHub
30 changed files with 257 additions and 143 deletions

View File

@@ -99,7 +99,7 @@ std::optional<bool> forEachModuleSearchPath(
callback) {
for (const auto &path : Ctx.SearchPathOpts.getImportSearchPaths())
if (auto result =
callback(path, ModuleSearchPathKind::Import, /*isSystem=*/false))
callback(path.Path, ModuleSearchPathKind::Import, path.IsSystem))
return result;
for (const auto &path : Ctx.SearchPathOpts.getFrameworkSearchPaths())