mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user