Skip to content

Commit a42fa19

Browse files
committed
Stage in -experimental-private-intransitive-dependencies
Add a flag to support setting the evaluator-based dependency collector in a mode that ignores scope inversions and only collects private dependencies.
1 parent a082e9d commit a42fa19

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,10 @@ namespace swift {
357357
/// conformances.
358358
bool EnableExperimentalAdditiveArithmeticDerivedConformances = false;
359359

360+
/// Whether to enable a more aggressive mode of incremental dependency
361+
/// gathering that never captures cascading edges.
362+
bool EnableExperientalPrivateIntransitiveDependencies = false;
363+
360364
/// Enable verification when every SubstitutionMap is constructed.
361365
bool VerifyAllSubstitutionMaps = false;
362366

include/swift/Option/Options.td

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,12 @@ def enable_experimental_concise_pound_file : Flag<["-"],
511511
Flags<[FrontendOption]>,
512512
HelpText<"Enable experimental concise '#file' identifier">;
513513

514+
def experimental_private_intransitive_dependencies : Flag<["-"],
515+
"experimental-private-intransitive-dependencies">,
516+
Flags<[FrontendOption, HelpHidden]>,
517+
HelpText<"Enable experimental dependency tracking that never cascades">;
518+
519+
514520
// Diagnostic control options
515521
def suppress_warnings : Flag<["-"], "suppress-warnings">,
516522
Flags<[FrontendOption]>,

0 commit comments

Comments
 (0)