summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-07-01 03:50:08 (GMT)
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-07-18 03:46:08 (GMT)
commit47e28cbe1faf7b70bda0d7d88db1d146d69a0123 (patch)
treed9bb7fea71b0e74219d7eb5ff40558318ce1870d /Help
parent6814567e8c1c73c09e98ebcd1296e4fda717f0a4 (diff)
downloadCMake-47e28cbe1faf7b70bda0d7d88db1d146d69a0123.zip
CMake-47e28cbe1faf7b70bda0d7d88db1d146d69a0123.tar.gz
CMake-47e28cbe1faf7b70bda0d7d88db1d146d69a0123.tar.bz2
Swift: support multithreaded compilation
Query the number of logical CPUs available to enable parallel compilation for Swift.
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-variables.7.rst1
-rw-r--r--Help/variable/CMAKE_Swift_NUM_THREADS.rst8
2 files changed, 9 insertions, 0 deletions
diff --git a/Help/manual/cmake-variables.7.rst b/Help/manual/cmake-variables.7.rst
index 75ddd5d..e3c2f9f 100644
--- a/Help/manual/cmake-variables.7.rst
+++ b/Help/manual/cmake-variables.7.rst
@@ -98,6 +98,7 @@ Variables that Provide Information
/variable/CMAKE_STATIC_LIBRARY_PREFIX
/variable/CMAKE_STATIC_LIBRARY_SUFFIX
/variable/CMAKE_Swift_MODULE_DIRECTORY
+ /variable/CMAKE_Swift_NUM_THREADS
/variable/CMAKE_TOOLCHAIN_FILE
/variable/CMAKE_TWEAK_VERSION
/variable/CMAKE_VERBOSE_MAKEFILE
diff --git a/Help/variable/CMAKE_Swift_NUM_THREADS.rst b/Help/variable/CMAKE_Swift_NUM_THREADS.rst
new file mode 100644
index 0000000..cb33678
--- /dev/null
+++ b/Help/variable/CMAKE_Swift_NUM_THREADS.rst
@@ -0,0 +1,8 @@
+CMAKE_Swift_NUM_THREADS
+-----------------------
+
+Number of threads for parallel compilation for Swift targets.
+
+This variable controls the number of parallel jobs that the swift driver creates
+for building targets. If not specified, it will default to the number of
+logical CPUs on the host.