Skip to content

Commit 2fc0f78

Browse files
author
David Ungar
committed
Fix comment for OnlyOneDependencyFile
1 parent cc83751 commit 2fc0f78

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/swift/Driver/Compilation.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,12 @@ class Compilation {
264264
/// added -emit-dependency-path.
265265
bool HaveAlreadyAddedDependencyPath = false;
266266

267-
/// Set if the -only-one-dependency-file flag is set
267+
/// When set, only the first scheduled frontend job gets the argument needed
268+
/// to produce a make-style dependency file. The other jobs create dummy files
269+
/// in the driver. This hack speeds up incremental compilation by reducing the
270+
/// time for the build system to read each dependency file, which are all
271+
/// identical. This optimization can be disabled by passing
272+
/// -disable-only-one-dependency-file on the command line.
268273
const bool OnlyOneDependencyFile;
269274

270275
/// Scaffolding to permit experimentation with finer-grained dependencies and

0 commit comments

Comments
 (0)