From 8ddea729178845b309d409fe762aced71d9d95e0 Mon Sep 17 00:00:00 2001 From: mstembera <5421953+mstembera@users.noreply.github.com> Date: Thu, 16 Jul 2026 08:19:23 +0200 Subject: [PATCH] Add -fno-ipa-cp-clone for mingw Add -fno-ipa-cp-clone for mingw just as we do for gcc. I get about a 1% speedup. My machine is pretty unreliable for bench so maybe someone can verify. closes https://github.com/official-stockfish/Stockfish/pull/6973 No functional change --- src/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Makefile b/src/Makefile index c45f0d1db..4f9a27ab4 100644 --- a/src/Makefile +++ b/src/Makefile @@ -681,6 +681,8 @@ ifeq ($(COMP),gcc) else CXXFLAGS += -Wstack-usage=128000 -fno-ipa-cp-clone -fconstexpr-ops-limit=500000000 endif +else ifeq ($(COMP),mingw) + CXXFLAGS += -fno-ipa-cp-clone endif ### On mingw use Windows threads, otherwise POSIX