[Caching] Remove temporary caching test option

Remove `-allow-unstable-cache-key-for-testing` frontend flag. It is a
test only flag when the infrastructure is not ready to write tests for
fully cachable tasks. It is no longer needed after all the related tests
are rewritten to use dependency scanner.
This commit is contained in:
Steven Wu
2024-01-26 21:10:41 -08:00
parent 52671e1a6a
commit f3c5e6a142
2 changed files with 2 additions and 7 deletions

View File

@@ -275,10 +275,8 @@ bool ArgsToFrontendOptionsConverter::convert(
if (Opts.EnableCaching && Opts.CASFSRootIDs.empty() &&
Opts.ClangIncludeTrees.empty() &&
FrontendOptions::supportCompilationCaching(Opts.RequestedAction)) {
if (!Args.hasArg(OPT_allow_unstable_cache_key_for_testing)) {
Diags.diagnose(SourceLoc(), diag::error_caching_no_cas_fs);
return true;
}
Diags.diagnose(SourceLoc(), diag::error_caching_no_cas_fs);
return true;
}
if (FrontendOptions::doesActionGenerateIR(Opts.RequestedAction)) {