@@ -206,15 +206,6 @@ class Compilation {
206206 // / of date.
207207 bool EnableIncrementalBuild;
208208
209- // / When true, emit duplicated compilation record file whose filename is
210- // / suffixed with '~moduleonly'.
211- // /
212- // / This compilation record is used by '-emit-module'-only incremental builds
213- // / so that module-only builds do not affect compilation record file for
214- // / normal builds, while module-only incremental builds are able to use
215- // / artifacts of normal builds if they are already up to date.
216- bool OutputCompilationRecordForModuleOnlyBuild = false ;
217-
218209 // / Indicates whether groups of parallel frontend jobs should be merged
219210 // / together and run in composite "batch jobs" when possible, to reduce
220211 // / redundant work.
@@ -290,6 +281,9 @@ class Compilation {
290281 // / Experiment with source-range-based dependencies
291282 const bool EnableSourceRangeDependencies;
292283
284+ // / (experimental) Enable cross-module incremental build scheduling.
285+ const bool EnableCrossModuleIncrementalBuild;
286+
293287public:
294288 // / Will contain a comparator if an argument demands it.
295289 Optional<IncrementalSchemeComparator> IncrementalComparator;
@@ -313,7 +307,6 @@ class Compilation {
313307 std::unique_ptr<llvm::opt::DerivedArgList> TranslatedArgs,
314308 InputFileList InputsWithTypes,
315309 std::string CompilationRecordPath,
316- bool OutputCompilationRecordForModuleOnlyBuild,
317310 StringRef ArgsHash, llvm::sys::TimePoint<> StartTime,
318311 llvm::sys::TimePoint<> LastBuildTime,
319312 size_t FilelistThreshold,
@@ -333,7 +326,8 @@ class Compilation {
333326 bool FineGrainedDependenciesIncludeIntrafileOnes = false,
334327 bool EnableSourceRangeDependencies = false,
335328 bool CompareIncrementalSchemes = false,
336- StringRef CompareIncrementalSchemesPath = "");
329+ StringRef CompareIncrementalSchemesPath = "",
330+ bool EnableCrossModuleIncrementalBuild = false);
337331 // clang-format on
338332 ~Compilation ();
339333
@@ -439,6 +433,10 @@ class Compilation {
439433 return ShowDriverTimeCompilation;
440434 }
441435
436+ bool getEnableCrossModuleIncrementalBuild () const {
437+ return EnableCrossModuleIncrementalBuild;
438+ }
439+
442440 size_t getFilelistThreshold () const {
443441 return FilelistThreshold;
444442 }
0 commit comments