mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-01-30 17:13:50 +01:00
DroidFish: Define IS_64BIT when compiling stockfish for 64 bit
architectures. About 2% faster on HTC One M9.
This commit is contained in:
parent
7ba629047a
commit
f284180da8
|
@ -5,15 +5,26 @@ SF_SRC_FILES := \
|
|||
bitbase.cpp endgame.cpp material.cpp movepick.cpp position.cpp timeman.cpp ucioption.cpp \
|
||||
bitboard.cpp evaluate.cpp misc.cpp search.cpp tt.cpp syzygy/tbprobe.cpp
|
||||
|
||||
MY_ARCH_DEF :=
|
||||
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
||||
MY_ARCH_DEF += -DIS_64BIT
|
||||
endif
|
||||
ifeq ($(TARGET_ARCH_ABI),x86_64)
|
||||
MY_ARCH_DEF += -DIS_64BIT
|
||||
endif
|
||||
ifeq ($(TARGET_ARCH_ABI),mips64)
|
||||
MY_ARCH_DEF += -DIS_64BIT
|
||||
endif
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := stockfish-nopie
|
||||
LOCAL_SRC_FILES := $(SF_SRC_FILES)
|
||||
LOCAL_CFLAGS := -std=c++11 -O2
|
||||
LOCAL_CFLAGS := -std=c++11 -O2 $(MY_ARCH_DEF)
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := stockfish
|
||||
LOCAL_SRC_FILES := $(SF_SRC_FILES)
|
||||
LOCAL_CFLAGS := -std=c++11 -O2 -fPIE
|
||||
LOCAL_CFLAGS := -std=c++11 -O2 -fPIE $(MY_ARCH_DEF)
|
||||
LOCAL_LDFLAGS += -fPIE -pie
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
|
Loading…
Reference in New Issue
Block a user