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
This commit is contained in:
mstembera
2026-07-16 08:28:24 +02:00
committed by Joost VandeVondele
parent a255ad59e3
commit 8ddea72917
+2
View File
@@ -681,6 +681,8 @@ ifeq ($(COMP),gcc)
else else
CXXFLAGS += -Wstack-usage=128000 -fno-ipa-cp-clone -fconstexpr-ops-limit=500000000 CXXFLAGS += -Wstack-usage=128000 -fno-ipa-cp-clone -fconstexpr-ops-limit=500000000
endif endif
else ifeq ($(COMP),mingw)
CXXFLAGS += -fno-ipa-cp-clone
endif endif
### On mingw use Windows threads, otherwise POSIX ### On mingw use Windows threads, otherwise POSIX