Swift: support multithreaded compilation

Query the number of logical CPUs available to enable parallel
compilation for Swift.
This commit is contained in:
Saleem Abdulrasool
2019-06-30 20:50:08 -07:00
parent 8a42cd155f
commit 08cd7f6a02
3 changed files with 19 additions and 6 deletions

View File

@@ -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.