Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions getting-started/setup-building.rst
Comment thread
johnslavik marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ Configuration is typically::
More flags are available to ``configure``, but this is the minimum you should
do to get a pydebug build of CPython.

.. tip::
To speed up repeated ``configure`` runs, use ``--config-cache`` (short:
``-C``, equivalent: ``--cache-file=config.cache``)::
Comment thread
johnslavik marked this conversation as resolved.
Outdated

$ ./configure --config-cache --with-pydebug

This caches results in a ``config.cache`` file. If you switch compilers or
significantly change your build environment, delete ``config.cache`` before
Comment thread
johnslavik marked this conversation as resolved.
Outdated
re-running ``configure``.

.. note::
You might need to run ``make clean`` before or after re-running ``configure``
in a particular build directory.
Expand Down
4 changes: 2 additions & 2 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ instructions please see the :ref:`setup guide <setup>`.

.. code-block:: shell

./configure --with-pydebug && make -j $(nproc)
./configure --config-cache --with-pydebug && make -j $(nproc)

.. tab:: macOS

.. code-block:: shell

./configure --with-pydebug && make -j8
./configure --config-cache --with-pydebug && make -j8

.. tab:: Windows

Expand Down
Loading