We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14be734 commit 569359aCopy full SHA for 569359a
util/buildbot/buildwin32.sh
@@ -32,10 +32,8 @@ toolchain_file=$topdir/toolchain_${compiler/-gcc/}.cmake
32
echo "Using $toolchain_file"
33
34
# Use ccache if it is available
35
-if command -v ccache >&-; then
36
- extra_args=(-DCMAKE_C_COMPILER_LAUNCHER=ccache \
37
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache)
38
-fi
+extra_args=()
+command -v ccache >/dev/null && extra_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)
39
40
# Try to find runtime DLLs in various paths (varies by distribution, sigh)
41
tmp=$(dirname "$(command -v $compiler)")/..
0 commit comments