Make snapcraft work with ccache
Bug #1626766 reported by
Olivier Paroz
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
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/
$ which g++
/usr/lib/ccache/g++
```
description: | updated |
To post a comment you must log in.
As a workaround you may use the ccache remote part: /forum. snapcraft. io/t/speed- up-snap- building/ 7979
https:/