Merge remote-tracking branch 'main' into rebranch

Conflict in CAS options when
`std::vector<std::string> CacheReplayPrefixMap;` was added.

Conflicts:
  include/swift/Frontend/FrontendOptions.h

Resolution: Take both
This commit is contained in:
Evan Wilde
2023-10-04 14:28:43 -07:00
38 changed files with 910 additions and 327 deletions

View File

@@ -1818,6 +1818,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