summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/Swift_COMPILATION_MODE-VALUES.txt
blob: b94380a5e526274cd12ae29b0ea15e5c6c162212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
``incremental``
  Compiles each Swift source in the module separately, resulting in better
  parallelism in the build. The compiler emits additional information into
  the build directory improving rebuild performance when small changes are made
  to the source between rebuilds. This is the best option to use while
  iterating on changes in a project.

``wholemodule``
  Whole-module optimizations are slowest to compile, but results in the most
  optimized library. The entire context is loaded into once instance of the
  compiler, so there is no parallelism across source files in the module.

``singlefile``
  Compiles each source in a Swift modules separately, resulting in better
  parallelism. Unlike the ``incremental`` build mode, no additional information
  is emitted by the compiler during the build, so rebuilding after making small
  changes to the source file will not run faster. This option should be used
  sparingly, preferring ``incremental`` builds, unless working around a compiler
  bug.