mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Fix compilation errors on macOS
``` clang++: error: unknown argument: '-fno-ipa-cp-clone' clang++: error: unknown argument: '-fno-ipa-cp-clone' make[1]: *** [bitboard.o] Error 1 ``` The flag is unsupported by Clang, which pretends to be GCC on macOS, so only passing -fno-ipa-cp-clone to real GCC fixes macOS builds. closes https://github.com/official-stockfish/Stockfish/pull/6698 No functional change
This commit is contained in:
+2
-2
@@ -451,7 +451,7 @@ endif
|
||||
ifeq ($(COMP),gcc)
|
||||
comp=gcc
|
||||
CXX=g++
|
||||
CXXFLAGS += -pedantic -Wextra -Wshadow -Wmissing-declarations -fno-ipa-cp-clone
|
||||
CXXFLAGS += -pedantic -Wextra -Wshadow -Wmissing-declarations
|
||||
|
||||
ifeq ($(arch),$(filter $(arch),armv7 armv8 riscv64))
|
||||
ifeq ($(OS),Android)
|
||||
@@ -623,7 +623,7 @@ ifeq ($(COMP),gcc)
|
||||
profile_make = clang-profile-make
|
||||
profile_use = clang-profile-use
|
||||
else
|
||||
CXXFLAGS += -Wstack-usage=128000
|
||||
CXXFLAGS += -Wstack-usage=128000 -fno-ipa-cp-clone
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user