From c683703df4626c1e7c8f10982e1916b6d12303d3 Mon Sep 17 00:00:00 2001 From: Allan Shortlidge Date: Wed, 18 Oct 2023 16:40:00 -0700 Subject: [PATCH] Options: Make -experimental-lazy-typecheck a driver option. It should not just be a frontend option. Partially resolves rdar://117168788. --- include/swift/Option/FrontendOptions.td | 3 --- include/swift/Option/Options.td | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/swift/Option/FrontendOptions.td b/include/swift/Option/FrontendOptions.td index 55bed9cff3641..0203f80816091 100644 --- a/include/swift/Option/FrontendOptions.td +++ b/include/swift/Option/FrontendOptions.td @@ -444,9 +444,6 @@ def debug_forbid_typecheck_prefix : Separate<["-"], "debug-forbid-typecheck-pref HelpText<"Triggers llvm fatal_error if typechecker tries to typecheck a decl " "with the provided prefix name">; -def experimental_lazy_typecheck : Flag<["-"], "experimental-lazy-typecheck">, - HelpText<"Type-check lazily as needed to produce requested outputs">; - def debug_emit_invalid_swiftinterface_syntax : Flag<["-"], "debug-emit-invalid-swiftinterface-syntax">, HelpText<"Write an invalid declaration into swiftinterface files">; diff --git a/include/swift/Option/Options.td b/include/swift/Option/Options.td index 900236a10bf94..a2a0cf177acb7 100644 --- a/include/swift/Option/Options.td +++ b/include/swift/Option/Options.td @@ -1887,6 +1887,11 @@ def cache_replay_prefix_map: Separate<["-"], "cache-replay-prefix-map">, Flags<[FrontendOption, NoDriverOption, CacheInvariant]>, HelpText<"Remap paths when replaying outputs from cache">, MetaVarName<"">; +def experimental_lazy_typecheck : + Flag<["-"], "experimental-lazy-typecheck">, + Flags<[FrontendOption, NewDriverOnlyOption, HelpHidden]>, + HelpText<"Type-check lazily as needed to produce requested outputs">; + // END ONLY SUPPORTED IN NEW DRIVER