Skip to content

Commit 569359a

Browse files
HybridDogsfan5
andauthored
Update util/buildbot/buildwin32.sh
Co-authored-by: sfan5 <[email protected]>
1 parent 14be734 commit 569359a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

util/buildbot/buildwin32.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ toolchain_file=$topdir/toolchain_${compiler/-gcc/}.cmake
3232
echo "Using $toolchain_file"
3333

3434
# 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
35+
extra_args=()
36+
command -v ccache >/dev/null && extra_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)
3937

4038
# Try to find runtime DLLs in various paths (varies by distribution, sigh)
4139
tmp=$(dirname "$(command -v $compiler)")/..

0 commit comments

Comments
 (0)