Skip to content

Commit

Permalink
cleanup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
HybridDog committed Oct 22, 2023
1 parent 1ae61c5 commit a4ed384
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
7 changes: 2 additions & 5 deletions util/buildbot/buildwin32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ fi
toolchain_file=$topdir/toolchain_${compiler/-gcc/}.cmake
echo "Using $toolchain_file"

# Use ccache if it is available
extra_args=()
command -v ccache >/dev/null && extra_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)

find_runtime_dlls i686-w64-mingw32

# Get stuff
Expand Down Expand Up @@ -64,7 +60,6 @@ cd $builddir
[ -d build ] && rm -rf build

cmake_args=(
"${extra_args[@]}"
-DCMAKE_TOOLCHAIN_FILE=$toolchain_file
-DCMAKE_INSTALL_PREFIX=/tmp
-DVERSION_EXTRA=$git_hash
Expand All @@ -76,6 +71,8 @@ cmake_args=(
-DENABLE_GETTEXT=1
-DENABLE_LEVELDB=1
)
# Use ccache if it is available
command -v ccache >/dev/null && cmake_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)
add_cmake_libs
cmake -S $sourcedir -B build "${cmake_args[@]}"

Expand Down
9 changes: 2 additions & 7 deletions util/buildbot/buildwin64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ fi
toolchain_file=$topdir/toolchain_${compiler/-gcc/}.cmake
echo "Using $toolchain_file"

# Use ccache if it is available
if command -v ccache >&-; then
extra_args=(-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache)
fi

find_runtime_dlls x86_64-w64-mingw32

# Get stuff
Expand Down Expand Up @@ -63,7 +57,6 @@ cd $sourcedir
[ -d build ] && rm -rf build

cmake_args=(
"${extra_args[@]}"
-DCMAKE_TOOLCHAIN_FILE=$toolchain_file
-DCMAKE_INSTALL_PREFIX=/tmp
-DVERSION_EXTRA=$git_hash
Expand All @@ -75,6 +68,8 @@ cmake_args=(
-DENABLE_GETTEXT=1
-DENABLE_LEVELDB=1
)
# Use ccache if it is available
command -v ccache >/dev/null && cmake_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)
add_cmake_libs
cmake -S $sourcedir -B build "${cmake_args[@]}"

Expand Down
6 changes: 2 additions & 4 deletions util/ci/build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#! /bin/bash -e

# Use ccache if it is available
if command -v ccache >&-; then
extra_args=(-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache)
fi
extra_args=()
command -v ccache >/dev/null && extra_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)

cmake -B build \
"${extra_args[@]}" \
Expand Down
6 changes: 2 additions & 4 deletions util/ci/build_prometheus_cpp.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#! /bin/bash -eu

# Use ccache if it is available
if command -v ccache >&-; then
extra_args=(-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache)
fi
extra_args=()
command -v ccache >/dev/null && extra_args+=(-DCMAKE_{C,CCX}_COMPILER_LAUNCHER=ccache)

cd /tmp
git clone --recursive https://github.com/jupp0r/prometheus-cpp
Expand Down

0 comments on commit a4ed384

Please sign in to comment.