[MacPorts] howto/ccache modified

MacPorts Wiki noreply at macports.org
Sun Apr 4 18:22:41 UTC 2021


Page "howto/ccache" was changed by raimue
Diff URL: <https://trac.macports.org/wiki/howto/ccache?action=diff&version=11>
Revision 11
Comment: Correct info on ccache directory and commands
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/ccache
=========================================================================
--- howto/ccache (version: 10)
+++ howto/ccache (version: 11)
@@ -30,22 +30,15 @@
 
 And you are done. From now on, MacPorts will use ccache for building.
 
+If you want to limit how much disk space ccache may use, you can configure the maximum with `ccache_size`.
+
 == Configuration ==
 
-Please note that cache files are stored in .ccache in your home directory. To see some statistics how useful ccache is for you and how much disk space it takes, use
+When building ports, cache files are stored in a directory inside the MacPorts prefix, which is at `/opt/local/var/macports/build/.ccache` by default. Additionally, there is also a ~/.ccache directory in your home, which is used if you run manual builds with ccache outside of MacPorts.
+
+To see some statistics how useful ccache is for your ports and how much disk space it takes, use
 {{{
-$ ccache -s
-}}}
-
-If you believe ccache takes up too much disk space for you, there is the possibility to set a maximum by using something like
-{{{
-$ ccache -M 2G
-}}}
-This makes ccache occupy a maximum of 2 GiB disk space to store cached files.
-
-If you want to free some space, do a cleanup with
-{{{
-$ ccache -c
+$ CCACHE_DIR=/opt/local/var/macports/build/.ccache ccache -s
 }}}
 
 == Optional Parts ==
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/howto/ccache>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'howto/ccache' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list