From b23044c19ccd052e868dbe8d9da6a6f674df5faa Mon Sep 17 00:00:00 2001 From: Semen Pyankov Date: Fri, 7 Nov 2025 14:04:45 -0800 Subject: [PATCH] Add new flag to enable dependency scanning without importing in the frontend --- include/swift/Option/Options.td | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/swift/Option/Options.td b/include/swift/Option/Options.td index 7d2bc8381575..ec6e28870e27 100644 --- a/include/swift/Option/Options.td +++ b/include/swift/Option/Options.td @@ -2353,6 +2353,11 @@ def cache_replay_prefix_map: MultiArg<["-"], "cache-replay-prefix-map", 2>, Flags<[FrontendOption, NoDriverOption, CacheInvariant]>, HelpText<"Remap paths when replaying outputs from cache">, MetaVarName<" ">; +def register_module_dependency : Separate<["-"], "register-module-dependency">, + Flags<[NewDriverOnlyOption]>, + HelpText<"Register module for dependency scan without importing in the frontend">; + + // END ONLY SUPPORTED IN NEW DRIVER