-
-
Notifications
You must be signed in to change notification settings - Fork 886
Ensure make -j
uses a reasonable argument
#1541
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,14 +203,13 @@ do to get a pydebug build of CPython. | |
|
||
Once ``configure`` is done, you can then compile CPython with:: | ||
|
||
$ make -s -j2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've merged, as Hugo uses macOS and didn't complain, but we can open a follow-up if need be. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for pointing that out. I do have coreutils installed via Homebrew, which is why it worked for me. Let's not require or assume others do. Shall we use a hardcoded value under the macOS tabs? Something like 8 feels like a good default? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TL;DR - this is good enough. I feel like people who understand how to run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That seems like a rash assumption to me; I would expect anyone with that level of comfort with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The assumption would be correct if we were in the By the way, |
||
$ make -s -j $(nproc) | ||
|
||
This will build CPython with only warnings and errors being printed to | ||
stderr and utilize up to 2 CPU cores. If you are using a multi-core machine | ||
with more than 2 cores (or a single-core machine), you can adjust the number | ||
passed into the ``-j`` flag to match the number of cores you have (or if your | ||
version of Make supports it, you can use ``-j`` without a number and Make | ||
will not limit the number of steps that can run simultaneously.). | ||
stderr. The ``-j`` argument means that :program:`make` will concurrently run | ||
tasks, limiting the number of parallel jobs to the number of CPU cores in your | ||
computer. You can adjust the number passed to the ``-j`` flag to change | ||
the limit on parallel jobs, which can trade RAM usage vs compilation time. | ||
AA-Turner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
At the end of the build you should see a success message, followed | ||
by a list of extension modules that haven't been built because their | ||
|
@@ -875,7 +874,7 @@ some of CPython's modules (for example, ``zlib``). | |
|
||
And finally, run ``make``:: | ||
|
||
$ make -s -j2 | ||
$ make -s -j $(nproc) | ||
|
||
There will sometimes be optional modules added for a new release which | ||
won't yet be identified in the OS-level build dependencies. In those cases, | ||
|
Uh oh!
There was an error while loading. Please reload this page.