Merge pull request #67041 from cachemeifyoucan/eng/PR-fix-cas-depscan-edge-cases

[DepScan][CAS] Fix some cases in cas-based depscanning
This commit is contained in:
Steven Wu
2023-06-30 11:41:10 -07:00
committed by GitHub
7 changed files with 28 additions and 18 deletions

View File

@@ -238,7 +238,7 @@ void ClangImporter::recordModuleDependencies(
clangModuleDep.IncludeTreeID ? *clangModuleDep.IncludeTreeID : "";
if (ctx.ClangImporterOpts.CASOpts) {
swiftArgs.push_back("-enable-cas");
swiftArgs.push_back("-cache-compile-job");
if (!ctx.ClangImporterOpts.CASOpts->CASPath.empty()) {
swiftArgs.push_back("-cas-path");
swiftArgs.push_back(ctx.ClangImporterOpts.CASOpts->CASPath);
@@ -345,7 +345,7 @@ void ClangImporter::recordBridgingHeaderOptions(
llvm::for_each(clangArgs, addClangArg);
if (ctx.ClangImporterOpts.CASOpts) {
swiftArgs.push_back("-enable-cas");
swiftArgs.push_back("-cache-compile-job");
if (!ctx.ClangImporterOpts.CASOpts->CASPath.empty()) {
swiftArgs.push_back("-cas-path");
swiftArgs.push_back(ctx.ClangImporterOpts.CASOpts->CASPath);