Skip to content

Commit 37ff35d

Browse files
authored
Fix macOS build instructions
1 parent e4e90eb commit 37ff35d

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎getting-started/setup-building.rst‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,19 @@ do to get a pydebug build of CPython.
204204
You might need to run ``make clean`` before or after re-running ``configure``
205205
in a particular build directory.
206206

207-
Once ``configure`` is done, you can then compile CPython with::
207+
Once ``configure`` is done, you can then compile CPython with:
208208

209-
$ make -s -j $(nproc)
209+
.. tab:: Unix
210+
211+
.. code-block:: console
212+
213+
$ make -s -j $(nproc)
214+
215+
.. tab:: macOS
216+
217+
.. code-block:: console
218+
219+
$ make -s -j $(sysctl -n hw.logicalcpu)
210220
211221
This will build CPython with only warnings and errors being printed to
212222
stderr. The ``-j`` argument means that :program:`make` will concurrently run

0 commit comments

Comments
 (0)