-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Document using nproc
instead of hardcoded number of threads
#4476
Document using nproc
instead of hardcoded number of threads
#4476
Conversation
on linux nproc command prints the number of virtual cores available, and putting it inside grave accents will evaluate the command and replace it with its output.
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.
Please use the $()
syntax rather than the deprecated backtick syntax.
Also, beware as nproc
is not available on BSDs by default. Since this page is about compiling for Linux and BSD, I'm not sure if it's a good idea to add it.
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
instead of using nproc directly, because it isn't available on BSD
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.
Thanks!
nproc
instead of hardcoded number of threads.nproc
instead of hardcoded number of threads
on linux nproc command prints the number of virtual cores available, and putting it inside grave accents will evaluate the command and replace it with its output.