Comment 2 for bug 1626766

Revision history for this message
Mike Miller (mtmiller) wrote :

I have run into this, installing ccache in the host and building a snap with --destructive. I think this is because snapcraft prepends directories to PATH, so 'gcc' is found under /snap/.../usr/bin, not under /usr/lib/ccache.

A workaround that works for me is setting the environment variables CC="ccache gcc" and CXX="ccache g++" in the build environment.