mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +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
|
comp=clang
|
||||||
CXX=clang++
|
CXX=clang++
|
||||||
CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow
|
CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow
|
||||||
|
ifeq ($(UNAME),Darwin)
|
||||||
|
CXXFLAGS += -std=c++0x -stdlib=libc++
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(comp),icc)
|
ifeq ($(comp),icc)
|
||||||
@@ -186,8 +189,8 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(UNAME),Darwin)
|
ifeq ($(UNAME),Darwin)
|
||||||
CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.6
|
CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.10
|
||||||
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.6
|
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.10
|
||||||
endif
|
endif
|
||||||
|
|
||||||
### On mingw use Windows threads, otherwise POSIX
|
### On mingw use Windows threads, otherwise POSIX
|
||||||
|
|||||||
Reference in New Issue
Block a user