Recommend --config-cache for ./configure#1794
Recommend --config-cache for ./configure#1794johnslavik wants to merge 6 commits intopython:mainfrom
--config-cache for ./configure#1794Conversation
Documentation build overview
82 files changed ·
|
Add ``--config-cache`` to all relevant ``./configure`` invocations in the front page and setup-building guide, matching what the WASM commands already do. Add a brief explanation noting that ``config.cache`` should be deleted when switching compilers or significantly changing the build environment.
fa25256 to
05ad04c
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
OK now I'm in love with what I'm seeing |
| To speed up repeated ``configure`` runs, use ``--config-cache`` (short: | ||
| ``-C``, equivalent: ``--cache-file=config.cache``):: |
There was a problem hiding this comment.
Is this saying -C is short for --cache-file=config.cache?
There was a problem hiding this comment.
Yes. What I meant to say precisely is that -C = --config-cache = --config-file=config.cache.
There was a problem hiding this comment.
If you click macOS from the front page:
See also more detailed instructions, how to install and build dependencies, and the platform-specific pages for Unix, macOS, and Windows.
That takes you to this tab:
https://cpython-devguide--1794.org.readthedocs.build/getting-started/setup-building/#macos
Which includes this (and a 3.10 version):
$ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
./configure --with-pydebug \
--with-openssl="$(brew --prefix openssl@3)"Let's include --config-cache in those:
$ GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \
GDBM_LIBS="-L$(brew --prefix gdbm)/lib -lgdbm" \
./configure --config-cache \
--with-pydebug \
--with-openssl="$(brew --prefix openssl@3)"There was a problem hiding this comment.
Oh I just reverted that in 69463e6. If you want me to add these back, I'll add.
There was a problem hiding this comment.
Let's add it back, it's good to have useful snippets because people will copy and paste them (at least I do :)
There was a problem hiding this comment.
I added back to all 4 (brew, macports).
Closes #1547.