Re: Proper usage of CCACHE_BASEDIR?

Joel Rosdahl <[email protected]>
Newsgroups gmane.comp.compilers.ccache
Message-ID <CAK8D=pjfcwMRn79OhNBS0qvm8C_FHmQe8xz2O2X6erq+6XP6cg@mail.gmail.com>
Hi Jason,

Use option 1. From
http://ccache.samba.org/manual.html#_compiling_in_different_directories:

"ccache will then rewrite absolute paths that are under the base directory
(i.e., paths that have the base directory as a prefix) to relative paths
when constructing the hash. A typical path to use as the base directory is
your home directory or another directory that is a parent of your build
directories. "

-- Joel



On 5 March 2014 19:43, Fritz, Jason <[email protected]> wrote:

> Hi ccache folks,
>
> I am trying to understand the proper usage of the CCACHE_BASEDIR
> environment variable.
>
> I have several copies of my product's build tree in various directories
> that are not direct siblings.  For example:
>     /local/mnt/workspace/johndoe/Perforce/main/topdir
>     /local/mnt/workspace/johndoe/Perforce/users/feature1/topdir
>
> If I want to share the ccache between these products, how should I set
> CCACHE_BASEDIR?  Options:
> 1) One constant setting, i.e.
>     export CCACHE_BASEDIR=/local/mnt/workspace/johndoe/Perforce
>
> ...or...
>
> 2) Change the env variable depending on which tree I'm currently building.
> e.g. if I'm building .../main/topdir:
>     export CCACHE_BASEDIR=/local/mnt/workspace/johndoe/Perforce/main/topdir
> of if I'm building .../users/feature1/topdir:
>     export
> CCACHE_BASEDIR=/local/mnt/workspace/johndoe/Perforce/users/feature1/topdir
>
> Thank you for helping me clarify this!
> Jason
> _______________________________________________
> ccache mailing list
> [email protected]
> https://lists.samba.org/mailman/listinfo/ccache
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.