cmake: Use job pool feature to limit concurrent jobs #314

Manually merged
jwinterm merged 1 commits from asymptotically/wownero:cmake-job-pools into master 4 years ago

Add two new options, WOWNERO_PARALLEL_COMPILE_JOBS and WOWNERO_PARALLEL_LINK_JOBS to try and prevent running out of memory when building everything.

Requires >= cmake 3.0.0, and the use of the Ninja generator.

If the values are unset, or if Ninja is not used, it behaves as before.

Example
cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DMONERO_PARALLEL_LINK_JOBS=1
cd build
ninja
Add two new options, WOWNERO_PARALLEL_COMPILE_JOBS and WOWNERO_PARALLEL_LINK_JOBS to try and prevent running out of memory when building everything. Requires >= cmake 3.0.0, and the use of the Ninja generator. If the values are unset, or if Ninja is not used, it behaves as before. ##### Useful links * https://cmake.org/cmake/help/latest/prop_gbl/JOB_POOLS.html * https://reviews.llvm.org/D6304 ##### Example ```bash cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DMONERO_PARALLEL_LINK_JOBS=1 cd build ninja ```
asymptotically added 1 commit 4 years ago
continuous-integration/drone/pr Build is passing Details
465b5d85e4
cmake: Use job pool feature to limit concurrent jobs
dsc commented 4 years ago
Owner

Nice commit for upstream also +1

Nice commit for upstream also +1
Poster

Upstream is https://github.com/monero-project/monero/pull/6747

They are not frens of Ninja :(

Upstream is https://github.com/monero-project/monero/pull/6747 They are not frens of Ninja :(
jwinterm merged commit 04d6c39149 into master manually 4 years ago
continuous-integration/drone/pr Build is passing
The pull request has been manually merged as 04d6c39149.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: wownero/wownero#314
Loading…
There is no content yet.