From 3caf54ff348ffd18a4fe181a7d96c028fd2948da Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 25 Apr 2024 17:07:43 +0800 Subject: [PATCH] don't rebuild astyle each time --- packages/msys/build-mingw.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/msys/build-mingw.sh b/packages/msys/build-mingw.sh index 52eb4556..990e696e 100644 --- a/packages/msys/build-mingw.sh +++ b/packages/msys/build-mingw.sh @@ -121,7 +121,7 @@ while [[ $# -gt 0 ]]; do esac done -ASTYLE_BUILD_DIR="${TEMP}/astyle-build" +ASTYLE_BUILD_DIR="${TEMP}/astyle-${MSYSTEM}-build" ASTYLE_VERSION_TAG="3.4.14" BUILD_DIR="${TEMP}/redpanda-mingw-${MSYSTEM}-build" PACKAGE_DIR="${TEMP}/redpanda-mingw-${MSYSTEM}-pkg" @@ -196,8 +196,7 @@ pushd . cd "${ASTYLE_BUILD_DIR}" [[ -d "astyle" ]] || git clone --depth 1 --branch "${ASTYLE_VERSION_TAG}" "https://gitlab.com/saalen/astyle" cd astyle -[[ ! -d "build" ]] || rm -rf "build" -mkdir build +mkdir -p build cd build cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-static" mingw32-make -j$(nproc)