Initial plumbing for private dependencies

Add a mode bit to the dependency collector that respects the frontend flag in the previous commit.

Notably, we now write over the dependency files at the end of the compiler pipeline when this flag is on so that dependency from SILGen and IRGen are properly written to disk.
This commit is contained in:
Robert Widmann
2020-05-04 15:51:10 -07:00
parent a42fa19d12
commit b06211eac4
27 changed files with 1150 additions and 16 deletions

View File

@@ -434,6 +434,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
if (Args.hasArg(OPT_enable_experimental_additive_arithmetic_derivation))
Opts.EnableExperimentalAdditiveArithmeticDerivedConformances = true;
if (Args.hasArg(OPT_experimental_private_intransitive_dependencies))
Opts.EnableExperientalPrivateIntransitiveDependencies = true;
Opts.EnableExperimentalForwardModeDifferentiation |=
Args.hasArg(OPT_enable_experimental_forward_mode_differentiation);