From eb0751b9f0a57caa3fc8cb9edbb30fe511070fcb Mon Sep 17 00:00:00 2001 From: t1amak Date: Fri, 14 Nov 2025 13:16:54 +0000 Subject: [PATCH] win build fix 8 --- scripts/release/windows_x64/p2pool_windows_x64.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/release/windows_x64/p2pool_windows_x64.sh b/scripts/release/windows_x64/p2pool_windows_x64.sh index ea281b0..d5cab07 100755 --- a/scripts/release/windows_x64/p2pool_windows_x64.sh +++ b/scripts/release/windows_x64/p2pool_windows_x64.sh @@ -71,6 +71,16 @@ fi if [ -n "$GCC_TOOLCHAIN" ]; then flags_libs="--gcc-toolchain=$GCC_TOOLCHAIN $flags_libs" flags_p2pool="--gcc-toolchain=$GCC_TOOLCHAIN $flags_p2pool" + STDCPP_INC_BASE="$GCC_TOOLCHAIN/include/c++" + if [ -d "$STDCPP_INC_BASE" ]; then + flags_libs="$flags_libs -isystem $STDCPP_INC_BASE" + flags_p2pool="$flags_p2pool -isystem $STDCPP_INC_BASE" + TRIPLE_DIR="$(basename "$(dirname "$GCC_TOOLCHAIN")")" + if [ -n "$TRIPLE_DIR" ] && [ -d "$STDCPP_INC_BASE/$TRIPLE_DIR" ]; then + flags_libs="$flags_libs -isystem $STDCPP_INC_BASE/$TRIPLE_DIR" + flags_p2pool="$flags_p2pool -isystem $STDCPP_INC_BASE/$TRIPLE_DIR" + fi + fi fi cd /p2pool