Skip to content
Discussion options

You must be logged in to vote

There is no official way to do that, but here are two hacky ways I can think of:

$ gcc -x c -c /dev/null --ccache-skip &>/dev/null && echo ccache || echo not ccache 
ccache
$ /usr/bin/gcc -x c -c /dev/null --ccache-skip &>/dev/null && echo ccache || echo not ccache
not ccache
$ CCACHE_COMPILER=nonexistent gcc --version &>/dev/null && echo not ccache || echo ccache
ccache
$ CCACHE_COMPILER=nonexistent /usr/bin/gcc --version &>/dev/null && echo not ccache || echo ccache
not ccache

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Andrej730
Comment options

Answer selected by Andrej730
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants