[ccache] ccache does not recognize environment variables under Fish shell

Andrew Stubbs ams at codesourcery.com
Tue Aug 19 03:22:26 MDT 2014


On 19/08/14 01:35, Martín Cigorraga wrote:
> I already set CCACHE_DIR to use my tmpfs /tmp/ccache directory:
> ~ > echo $CCACHE_DIR
> /tmp/ccache

You need to export the variable before it can be seen by programs other 
than your shell.

I'm not familiar with fish shell, but there's a tutorial here:
  http://fishshell.com/docs/current/tutorial.html

It looks like you have to say this:

   > set -x CCACHE_DIR /tmp/ccache

You can check if the export was successful with the "env" command.

Hope that helps

Andrew


More information about the ccache mailing list