Use the initial value of EnableFineGrainedDependencies as the default.

This commit is contained in:
David Ungar
2020-01-23 10:12:33 -08:00
parent f696aabffb
commit 98b86c63d1
4 changed files with 10 additions and 3 deletions

View File

@@ -21,6 +21,7 @@
#include "swift/AST/DiagnosticsDriver.h"
#include "swift/AST/DiagnosticsFrontend.h"
#include "swift/Basic/LLVM.h"
#include "swift/Basic/LangOptions.h"
#include "swift/Basic/OutputFileMap.h"
#include "swift/Basic/Platform.h"
#include "swift/Basic/Range.h"
@@ -964,9 +965,11 @@ Driver::buildCompilation(const ToolChain &TC,
options::OPT_disable_only_one_dependency_file, true);
// relies on the new dependency graph
// Get the default from the initializer in LangOptions.
const bool EnableFineGrainedDependencies =
ArgList->hasFlag(options::OPT_enable_fine_grained_dependencies,
options::OPT_disable_fine_grained_dependencies, false);
options::OPT_disable_fine_grained_dependencies,
LangOptions().EnableFineGrainedDependencies);
const bool VerifyFineGrainedDependencyGraphAfterEveryImport = ArgList->hasArg(
options::