File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,8 @@ toolchain_file=$topdir/toolchain_${compiler/-gcc/}.cmake
32
32
echo " Using $toolchain_file "
33
33
34
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
35
+ extra_args=()
36
+ command -v ccache > /dev/null && extra_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)
39
37
40
38
# Try to find runtime DLLs in various paths (varies by distribution, sigh)
41
39
tmp=$( dirname " $( command -v $compiler ) " ) /..
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
3
3
# Use ccache if it is available
4
- if command -v ccache >& -; then
5
- extra_args=(-DCMAKE_C_COMPILER_LAUNCHER=ccache \
6
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache)
7
- fi
4
+ extra_args=()
5
+ command -v ccache > /dev/null && extra_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)
8
6
9
7
cmake -B build \
10
8
" ${extra_args[@]} " \
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -eu
2
2
3
3
# Use ccache if it is available
4
- if command -v ccache >& -; then
5
- extra_args=(-DCMAKE_C_COMPILER_LAUNCHER=ccache \
6
- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache)
7
- fi
4
+ extra_args=()
5
+ command -v ccache > /dev/null && extra_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)
8
6
9
7
cd /tmp
10
8
git clone --recursive https://github.com/jupp0r/prometheus-cpp
You can’t perform that action at this time.
0 commit comments