Merge pull request #68684 from cachemeifyoucan/eng/PR-path-remapping

[CompilerCaching] Path Remapping for canonicalization
This commit is contained in:
Steven Wu
2023-10-04 12:57:27 -07:00
committed by GitHub
24 changed files with 264 additions and 51 deletions

View File

@@ -1815,6 +1815,9 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts,
auto SplitMap = StringRef(A).split('=');
Opts.DeserializedPathRecoverer.addMapping(SplitMap.first, SplitMap.second);
}
for (StringRef Opt : Args.getAllArgValues(OPT_scanner_prefix_map)) {
Opts.ScannerPrefixMapper.push_back(Opt.str());
}
// Opts.RuntimeIncludePath is set by calls to
// setRuntimeIncludePath() or setMainExecutablePath().
// Opts.RuntimeImportPath is set by calls to