Make snapcraft work with ccache
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
Despite having a properly configured ccache using $PATH, parts don't seem to be using it when compiling code.
It should be automatically picked up and used.
A simple test is to build a snap using a simple C++ example. Compiling by hand uses ccache, compiling uses snapcraft doesn't.
```
$ whereis g++
g++: /usr/bin/g++ /usr/lib/ccache/g++ /usr/share/man/man1/g++.1.gz
$ which g++
/usr/lib/ccache/g++
```
Evaluation history
No evaluation history available.