We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf5ef3e commit 02f596bCopy full SHA for 02f596b
.github/scripts/utils.zsh/setup_ccache
@@ -1,9 +1,13 @@
1
-autoload -Uz log_debug log_warning
+autoload -Uz is-at-least log_debug log_warning
2
3
if (( ${+commands[ccache]} )) {
4
log_debug "Found ccache at ${commands[ccache]}"
5
6
- ccache --set-config=run_second_cpp=true
+ local ccache_version=$(ccache --version | head -1 | cut -d ' ' -f 3)
7
+ if ! is-at-least 4.12 ${ccache_version}; then
8
+ ccache --set-config=run_second_cpp=true
9
+ fi
10
+
11
ccache --set-config=direct_mode=true
12
ccache --set-config=inode_cache=true
13
ccache --set-config=compiler_check=content
0 commit comments