Changes between Version 10 and Version 11 of howto/ccache
- Timestamp:
- Apr 4, 2021, 6:22:41 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/ccache
v10 v11 31 31 And you are done. From now on, MacPorts will use ccache for building. 32 32 33 If you want to limit how much disk space ccache may use, you can configure the maximum with `ccache_size`. 34 33 35 == Configuration == 34 36 35 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 37 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. 38 39 To see some statistics how useful ccache is for your ports and how much disk space it takes, use 36 40 {{{ 37 $ ccache -s 38 }}} 39 40 If you believe ccache takes up too much disk space for you, there is the possibility to set a maximum by using something like 41 {{{ 42 $ ccache -M 2G 43 }}} 44 This makes ccache occupy a maximum of 2 GiB disk space to store cached files. 45 46 If you want to free some space, do a cleanup with 47 {{{ 48 $ ccache -c 41 $ CCACHE_DIR=/opt/local/var/macports/build/.ccache ccache -s 49 42 }}} 50 43