You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unwanted double-caching when ccache is also installed #2519
If ccache is installed and has /usr/lib64/ccache in $PATH, then sccache gcc ... will actually call /usr/lib64/ccache/gcc, which is in fact ccache, resulting in double-caching.
It would be easier for users migrating from ccache (or having some projects using ccache and some projects using sccache) if sccache automatically set the CCACHE_DISABLE environment variable before invoking the compiler.
Activity
Felixoid commentedon Dec 19, 2025
Isn't it possible in this case to just chain
sccache ccache?avikivity commentedon Dec 20, 2025
The goal is to avoid double-caching, which is usually unwanted.
[-]Double-caching when ccache is also installed[/-][+]Unwanted double-caching when ccache is also installed[/+]Avoid double-cachine when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH
Avoid double-caching when ccache is installed in PATH (#2524)