Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support setting LLVM build parallelism
This adds an "nproc" variable to the Makefile, which allows the user to configure the build parallelism (currently only supported for the LLVM build). I.e. this variable is passed on to the build tool via `-j$(nproc)`, if set. The variable is not set by default, which means the build behaves just like before, using the default parallelism of the build tool (e.g. nproc + 2 for Ninja). It can be set on the command line as e.g. `make nproc=2` (to force it to a fixed number) or `make nproc=$(nproc)` (to set it to the number of available processors). On "memory constrained" systems with e.g. 4 CPUs, but "only" 8 GiB of RAM, this is necessary in order to prevent the LLVM build from consuming excessive amounts of memory and thus locking up the entire system. Signed-Off-By: Dennis Schridde <[email protected]>
- Loading branch information