From 44d5467bbe06789e8a3cbaee87e699e033b3081a Mon Sep 17 00:00:00 2001 From: Timothy Herchen Date: Sun, 28 Dec 2025 14:57:28 +0100 Subject: [PATCH] Remove -Wstack-usage on (apple) clang Clang pretends to be GCC, but is enraged by `-Wstack-usage`: closes https://github.com/official-stockfish/Stockfish/pull/6499 No functional change --- src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index cc85ac78e..bf3fbe80f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -436,7 +436,7 @@ endif ifeq ($(COMP),gcc) comp=gcc CXX=g++ - CXXFLAGS += -pedantic -Wextra -Wshadow -Wmissing-declarations -Wstack-usage=128000 + CXXFLAGS += -pedantic -Wextra -Wshadow -Wmissing-declarations ifeq ($(arch),$(filter $(arch),armv7 armv8 riscv64)) ifeq ($(OS),Android) @@ -607,6 +607,8 @@ ifeq ($(COMP),gcc) ifneq ($(gccisclang),) profile_make = clang-profile-make profile_use = clang-profile-use + else + CXXFLAGS += -Wstack-usage=128000 endif endif