-
Notifications
You must be signed in to change notification settings - Fork 1.6k
docs(BUILD): add -j $(nproc) #5288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This improves build times.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5288 +/- ##
=======================================
Coverage 78.6% 78.6%
=======================================
Files 816 816
Lines 70505 70505
Branches 8292 8290 -2
=======================================
+ Hits 55438 55441 +3
+ Misses 15067 15064 -3 🚀 New features to boost your workflow:
|
``` | ||
cmake --build . | ||
cmake --build . -j $(nproc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nproc
is not available on macos.
Since BUILD.md mentions building on Linux/Windows/Mac, it would be helpful to include the commands for each.
I usually use sysctl -n hw.logicalcpu
on macos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I forgot to mention that also.
brew install coreutils
will get you nproc
instead of that malarky.
High Level Overview of Change
This improves build times. I think the time is cut to about 1/6 for me - a big difference. I am not sure if there is a situation when it should not be used.
Context of Change
BUILD instructions
Type of Change
.gitignore
, formatting, dropping support for older tooling)