mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Fix build under OS X
Reported by Vince Negri No functional change.
This commit is contained in:
@@ -171,6 +171,9 @@ ifeq ($(COMP),clang)
|
||||
comp=clang
|
||||
CXX=clang++
|
||||
CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow
|
||||
ifeq ($(UNAME),Darwin)
|
||||
CXXFLAGS += -std=c++0x -stdlib=libc++
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(comp),icc)
|
||||
@@ -186,8 +189,8 @@ else
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME),Darwin)
|
||||
CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.6
|
||||
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.6
|
||||
CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.10
|
||||
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.10
|
||||
endif
|
||||
|
||||
### On mingw use Windows threads, otherwise POSIX
|
||||
|
||||
Reference in New Issue
Block a user