Take path arg for comparo

This commit is contained in:
David Ungar
2019-11-18 18:37:53 -08:00
parent d4e265d247
commit 38a6559aa9
6 changed files with 73 additions and 23 deletions

View File

@@ -857,7 +857,10 @@ Driver::buildCompilation(const ToolChain &TC,
const bool EnableSourceRangeDependencies =
ArgList->hasArg(options::OPT_enable_source_range_dependencies);
const bool CompareIncrementalSchemes =
ArgList->hasArg(options::OPT_driver_compare_incremental_schemes);
ArgList->hasArg(options::OPT_driver_compare_incremental_schemes) ||
ArgList->hasArg(options::OPT_driver_compare_incremental_schemes_path);
const StringRef CompareIncrementalSchemesPath = ArgList->getLastArgValue(
options::OPT_driver_compare_incremental_schemes_path);
Optional<OutputFileMap> OFM = buildOutputFileMap(
*TranslatedArgList, workingDirectory,
@@ -982,7 +985,8 @@ Driver::buildCompilation(const ToolChain &TC,
EmitExperimentalDependencyDotFileAfterEveryImport,
ExperimentalDependenciesIncludeIntrafileOnes,
EnableSourceRangeDependencies,
CompareIncrementalSchemes);
CompareIncrementalSchemes,
CompareIncrementalSchemesPath);
// clang-format on
}