Fix the command-line option from depscanner after caching option rename

This commit is contained in:
Steven Wu
2023-06-29 16:41:27 -07:00
parent 50d2f4d3ed
commit 0876a3e04f
4 changed files with 7 additions and 3 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);