Changes between Version 10 and Version 11 of howto/ccache


Ignore:
Timestamp:
Apr 4, 2021, 6:22:41 PM (3 years ago)
Author:
raimue (Rainer Müller)
Comment:

Correct info on ccache directory and commands

Legend:

Unmodified
Added
Removed
Modified
  • howto/ccache

    v10 v11  
    3131And you are done. From now on, MacPorts will use ccache for building.
    3232
     33If you want to limit how much disk space ccache may use, you can configure the maximum with `ccache_size`.
     34
    3335== Configuration ==
    3436
    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
     37When 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
     39To see some statistics how useful ccache is for your ports and how much disk space it takes, use
    3640{{{
    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
    4942}}}
    5043