@@ -143,14 +143,14 @@ class Compilation {
143
143
144
144
// / The number of commands which this compilation should attempt to run in
145
145
// / parallel.
146
- unsigned NumberOfParallelCommands;
146
+ const unsigned NumberOfParallelCommands;
147
147
148
148
// / Indicates whether this Compilation should use skip execution of
149
149
// / subtasks during performJobs() by using a dummy TaskQueue.
150
150
// /
151
151
// / \note For testing purposes only; similar user-facing features should be
152
152
// / implemented separately, as the dummy TaskQueue may provide faked output.
153
- bool SkipTaskExecution;
153
+ const bool SkipTaskExecution;
154
154
155
155
// / Indicates whether this Compilation should continue execution of subtasks
156
156
// / even if they returned an error status.
@@ -172,22 +172,21 @@ class Compilation {
172
172
// / Indicates whether groups of parallel frontend jobs should be merged
173
173
// / together and run in composite "batch jobs" when possible, to reduce
174
174
// / redundant work.
175
- bool EnableBatchMode;
175
+ const bool EnableBatchMode;
176
176
177
177
// / Provides a randomization seed to batch-mode partitioning, for debugging.
178
- unsigned BatchSeed;
178
+ const unsigned BatchSeed;
179
179
180
180
// / In order to test repartitioning, set to true if
181
- // / -driver-force-one-batch-repartition is present. This is cleared after the
182
- // / forced repartition happens.
183
- bool ForceOneBatchRepartition = false ;
181
+ // / -driver-force-one-batch-repartition is present.
182
+ const bool ForceOneBatchRepartition = false ;
184
183
185
184
// / True if temporary files should not be deleted.
186
- bool SaveTemps;
185
+ const bool SaveTemps;
187
186
188
187
// / When true, dumps information on how long each compilation task took to
189
188
// / execute.
190
- bool ShowDriverTimeCompilation;
189
+ const bool ShowDriverTimeCompilation;
191
190
192
191
// / When non-null, record various high-level counters to this.
193
192
std::unique_ptr<UnifiedStatsReporter> Stats;
0 commit comments