Talk:Ccache
From Gentoo Wiki
Note
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (
~~~~
), and indent successive comments with colons (:
).
Add new sections at the bottom of the page, under a heading (== ==
). Please remember to mark sections as "open for discussion" using {{talk|open}}
, so they will show up in the list of open discussions.Create /etc/ccache.conf
Talk status
This discussion is still ongoing.
Commands like ccache -s need to have the var cache_dir defined. In the example provided, it defines the variable on the command line (CCACHE_DIR=/var/cache/ccache ccache -s). Nevertheless, I believe this variable should be defined globally (in /etc/ccache.conf), so there is no need to append "CACHE_DIR=/var/cache/ccache" each time we use the command. Please let me know what do you think about this. Thanks. --Mimosinnet (talk) 12:38, 20 September 2022 (UTC)
That doesn't work for me:
find /root -iname "ccache.conf" # empty result pi400 ~ #
unset CCACHE_DIR cat /etc/ccache.conf CCACHE_DIR = /var/cache/ccache ccache -sv Summary: Cache directory: /root/.cache/ccache Primary config: /root/.config/ccache/ccache.conf Secondary config: /etc/ccache.conf