From 5eb009c2b32b9842d76b2caf81ebdc6c5ec8fe9d Mon Sep 17 00:00:00 2001 From: t1amak Date: Fri, 14 Nov 2025 11:55:51 +0000 Subject: [PATCH] win build fix 6 --- scripts/release/windows_x64/p2pool_windows_x64.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/release/windows_x64/p2pool_windows_x64.sh b/scripts/release/windows_x64/p2pool_windows_x64.sh index 04e966a..ea281b0 100755 --- a/scripts/release/windows_x64/p2pool_windows_x64.sh +++ b/scripts/release/windows_x64/p2pool_windows_x64.sh @@ -56,6 +56,7 @@ if [ -z "$MINGW_LIBGCC" ] && command -v x86_64-w64-mingw32-g++ >/dev/null 2>&1; fi if [ -n "$MINGW_LIBGCC" ]; then LIBGCC_DIR="$(dirname "$MINGW_LIBGCC")" + GCC_TOOLCHAIN="$LIBGCC_DIR" fi flags_libs="--target=x86_64-pc-windows-gnu $flags_sysroot -Os -flto -Wl,/timestamp:$BUILD_TIMESTAMP -fuse-ld=lld -w $flags_size $flags_datetime" @@ -67,6 +68,11 @@ if [ -n "$LIBGCC_DIR" ]; then flags_p2pool="$flags_p2pool -L$LIBGCC_DIR" fi +if [ -n "$GCC_TOOLCHAIN" ]; then + flags_libs="--gcc-toolchain=$GCC_TOOLCHAIN $flags_libs" + flags_p2pool="--gcc-toolchain=$GCC_TOOLCHAIN $flags_p2pool" +fi + cd /p2pool git apply --verbose --ignore-whitespace --directory=external/src/grpc/third_party/boringssl-with-bazel "$PATCH_DIR/boringssl/win7.patch" git apply --verbose --ignore-whitespace --directory=external/src/grpc/third_party/boringssl-with-bazel "$PATCH_DIR/boringssl/mingw-clang-intrin.patch"