Skip to content

Commit 60e9167

Browse files
author
David Ungar
committed
Fine-grained-dependencies on-by-default
1 parent f696aab commit 60e9167

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

include/swift/Basic/LangOptions.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ namespace swift {
298298

299299
/// Emit the newer, finer-grained swiftdeps file. Eventually will support
300300
/// faster rebuilds.
301-
bool EnableFineGrainedDependencies = false;
301+
bool EnableFineGrainedDependencies = true;
302302

303303
/// When using fine-grained dependencies, emit dot files for every swiftdeps
304304
/// file.

include/swift/Driver/Compilation.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class Compilation {
327327
bool ShowDriverTimeCompilation = false,
328328
std::unique_ptr<UnifiedStatsReporter> Stats = nullptr,
329329
bool OnlyOneDependencyFile = false,
330-
bool EnableFineGrainedDependencies = false,
330+
bool EnableFineGrainedDependencies = true,
331331
bool VerifyFineGrainedDependencyGraphAfterEveryImport = false,
332332
bool EmitFineGrainedDependencyDotFileAfterEveryImport = false,
333333
bool FineGrainedDependenciesIncludeIntrafileOnes = false,

lib/Driver/Driver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ Driver::buildCompilation(const ToolChain &TC,
966966
// relies on the new dependency graph
967967
const bool EnableFineGrainedDependencies =
968968
ArgList->hasFlag(options::OPT_enable_fine_grained_dependencies,
969-
options::OPT_disable_fine_grained_dependencies, false);
969+
options::OPT_disable_fine_grained_dependencies, true);
970970

971971
const bool VerifyFineGrainedDependencyGraphAfterEveryImport = ArgList->hasArg(
972972
options::

lib/Frontend/CompilerInvocation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
428428

429429
Opts.EnableFineGrainedDependencies =
430430
Args.hasFlag(options::OPT_enable_fine_grained_dependencies,
431-
options::OPT_disable_fine_grained_dependencies, false);
431+
options::OPT_disable_fine_grained_dependencies, true);
432432

433433
if (Args.hasArg(OPT_emit_fine_grained_dependency_sourcefile_dot_files))
434434
Opts.EmitFineGrainedDependencySourcefileDotFiles = true;

0 commit comments

Comments
 (0)