@@ -206,15 +206,6 @@ class Compilation {
206
206
// / of date.
207
207
bool EnableIncrementalBuild;
208
208
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
-
218
209
// / Indicates whether groups of parallel frontend jobs should be merged
219
210
// / together and run in composite "batch jobs" when possible, to reduce
220
211
// / redundant work.
@@ -290,6 +281,9 @@ class Compilation {
290
281
// / Experiment with source-range-based dependencies
291
282
const bool EnableSourceRangeDependencies;
292
283
284
+ // / (experimental) Enable cross-module incremental build scheduling.
285
+ const bool EnableCrossModuleIncrementalBuild;
286
+
293
287
public:
294
288
// / Will contain a comparator if an argument demands it.
295
289
Optional<IncrementalSchemeComparator> IncrementalComparator;
@@ -313,7 +307,6 @@ class Compilation {
313
307
std::unique_ptr<llvm::opt::DerivedArgList> TranslatedArgs,
314
308
InputFileList InputsWithTypes,
315
309
std::string CompilationRecordPath,
316
- bool OutputCompilationRecordForModuleOnlyBuild,
317
310
StringRef ArgsHash, llvm::sys::TimePoint<> StartTime,
318
311
llvm::sys::TimePoint<> LastBuildTime,
319
312
size_t FilelistThreshold,
@@ -333,7 +326,8 @@ class Compilation {
333
326
bool FineGrainedDependenciesIncludeIntrafileOnes = false,
334
327
bool EnableSourceRangeDependencies = false,
335
328
bool CompareIncrementalSchemes = false,
336
- StringRef CompareIncrementalSchemesPath = "");
329
+ StringRef CompareIncrementalSchemesPath = "",
330
+ bool EnableCrossModuleIncrementalBuild = false);
337
331
// clang-format on
338
332
~Compilation ();
339
333
@@ -439,6 +433,10 @@ class Compilation {
439
433
return ShowDriverTimeCompilation;
440
434
}
441
435
436
+ bool getEnableCrossModuleIncrementalBuild () const {
437
+ return EnableCrossModuleIncrementalBuild;
438
+ }
439
+
442
440
size_t getFilelistThreshold () const {
443
441
return FilelistThreshold;
444
442
}
0 commit comments