Skip to content

Commit f3c5e6a

Browse files
[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.
1 parent 52671e1 commit f3c5e6a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

include/swift/Option/FrontendOptions.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,9 +1273,6 @@ def always_compile_output_files :
12731273
HelpText<"Always compile output files even it might not change the results">;
12741274

12751275
// CAS/Caching related options.
1276-
def allow_unstable_cache_key_for_testing: Flag<["-"], "allow-unstable-cache-key-for-testing">,
1277-
HelpText<"Allow compilation caching with unstable inputs for testing purpose">;
1278-
12791276
def input_file_key : Separate<["-"], "input-file-key">,
12801277
HelpText<"Cache Key for input file">;
12811278
def bridging_header_pch_key : Separate<["-"], "bridging-header-pch-key">,

lib/Frontend/ArgsToFrontendOptionsConverter.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,8 @@ bool ArgsToFrontendOptionsConverter::convert(
275275
if (Opts.EnableCaching && Opts.CASFSRootIDs.empty() &&
276276
Opts.ClangIncludeTrees.empty() &&
277277
FrontendOptions::supportCompilationCaching(Opts.RequestedAction)) {
278-
if (!Args.hasArg(OPT_allow_unstable_cache_key_for_testing)) {
279-
Diags.diagnose(SourceLoc(), diag::error_caching_no_cas_fs);
280-
return true;
281-
}
278+
Diags.diagnose(SourceLoc(), diag::error_caching_no_cas_fs);
279+
return true;
282280
}
283281

284282
if (FrontendOptions::doesActionGenerateIR(Opts.RequestedAction)) {

0 commit comments

Comments
 (0)