[issue35921] Use ccache by default

Stéphane Wirtel report at bugs.python.org
Fri Feb 8 04:30:50 EST 2019


Stéphane Wirtel <stephane at wirtel.be> added the comment:

Hi @Raymond

I use this script since 1 year for the compilation of Python,

https://github.com/python/cpython/pull/11773#issuecomment-461179522

#!/usr/bin/env fish

set number_of_cpu (python3 -c "import os; print(os.sysconf('SC_NPROCESSORS_ONLN'))")

./configure --prefix=$PWD-build --with-pydebug --silent -C > stdout.txt ^ stderr.txt
make CC="/usr/bin/ccache gcc" --jobs $number_of_cpu --silent > stdout.txt ^ stderr.txt


Really useful because I use the cache of configure.ac and ccache for makefile. Now we could use distcc (for a distributed compilation or alternative) but I don't think the result will be really significative.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35921>
_______________________________________


More information about the Python-bugs-list mailing list