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

@@ -1604,7 +1604,7 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
if (clangImporterOpts.CASOpts) {
genericSubInvocation.getClangImporterOptions().CASOpts =
clangImporterOpts.CASOpts;
GenericArgs.push_back("-enable-cas");
GenericArgs.push_back("-cache-compile-job");
if (!clangImporterOpts.CASOpts->CASPath.empty()) {
GenericArgs.push_back("-cas-path");
GenericArgs.push_back(clangImporterOpts.CASOpts->CASPath);