mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
CMake's bootstrapping script can't infer a number of parallel build jobs from the number of CPU cores on its own, which means that it's not parallelized by default. Let's get the value of CPU cores when `build_jobs` argument is not explicitly set. `make -j` only has an effect on CMake's post-bootstrap build jobs, while a substantial amount of time was spent building code sequentially in CMake's bootstrap script without that `--parallelize` option, which is called on a line preceding the `make -j` invocation.
swift_build_support
swift_build_support is a Python module containing functions and data
structures used by the Swift build script.
You may run unit tests for swift_build_support from the command line:
$ python3 utils/swift_build_support/run_tests.py