Merge pull request #81792 from sina-mahdavi/sina-mahdavi/fix-llvm-prefix-mapping-calls

fix calls to llvm prefix mapping functions to use space-separated opt…
This commit is contained in:
Argyrios Kyrtzidis
2025-06-25 13:19:21 -07:00
committed by GitHub
4 changed files with 12 additions and 10 deletions

View File

@@ -40,8 +40,9 @@ using namespace clang::tooling::dependencies;
static void addScannerPrefixMapperInvocationArguments(
std::vector<std::string> &invocationArgStrs, ASTContext &ctx) {
for (const auto &arg : ctx.SearchPathOpts.ScannerPrefixMapper) {
std::string prefixMapArg = "-fdepscan-prefix-map=" + arg;
invocationArgStrs.push_back(prefixMapArg);
invocationArgStrs.push_back("-fdepscan-prefix-map");
invocationArgStrs.push_back(arg.first);
invocationArgStrs.push_back(arg.second);
}
}