opt/ccache
2018-09-07 19:27:50 +10:00
..
.footprint update romster ports for new man page location 2015-11-04 14:37:36 +11:00
.signature ccache: 3.4.1 -> 3.4.3 2018-09-07 19:27:50 +10:00
Pkgfile ccache: 3.4.1 -> 3.4.3 2018-09-07 19:27:50 +10:00
README ccache: 3.2 -> 3.2.1 2015-02-12 00:02:59 +11:00

POSTINSTALL

  There are two ways to use ccache. You can either prefix your compilation
  commands with ccache or you can let ccache masquerade as the compiler by
  prepending /usr/lib/ccache to your $PATH environment variable. The first
  method is most convenient if you just want to try out ccache or wish to
  use it for some specific projects. The second method is most useful for
  when you wish to use ccache for all your compilations.

  You can also set CC and CXX like so,
  export CC='ccache gcc' ; export CXX='ccache g++' to /etc/pkgmk.conf
  But this method can break on some packages not expecting a space in
  CC or CXX.

  You might also want to change the ccache directory, using the CCACHE_DIR
  environement variable. (I personally use
  export CCACHE_DIR="/var/cache/ccache").

  You may also want to use distcc as a backend to ccache by setting
  export CCACHE_PREFIX="distcc"

  Also if you plan to use this same cache between different crux versions and
  compiler versions, you can do something like this
  export CCACHE_COMPILERCHECK="%compiler% -dumpversion; crux"
  to prevent cache errors.