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
This commit is contained in:
Timothy Herchen
2025-12-28 14:59:26 +01:00
committed by Disservin
parent 969285fa5d
commit 44d5467bbe
+3 -1
View File
@@ -436,7 +436,7 @@ endif
ifeq ($(COMP),gcc) ifeq ($(COMP),gcc)
comp=gcc comp=gcc
CXX=g++ 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 ($(arch),$(filter $(arch),armv7 armv8 riscv64))
ifeq ($(OS),Android) ifeq ($(OS),Android)
@@ -607,6 +607,8 @@ ifeq ($(COMP),gcc)
ifneq ($(gccisclang),) ifneq ($(gccisclang),)
profile_make = clang-profile-make profile_make = clang-profile-make
profile_use = clang-profile-use profile_use = clang-profile-use
else
CXXFLAGS += -Wstack-usage=128000
endif endif
endif endif