-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathmake-4-android.sh
43 lines (40 loc) · 981 Bytes
/
make-4-android.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# build pikafish on Android arm64
export NDKROOT=/Users/admin/Library/Android/sdk/ndk/25.1.8937393
export PLATFORM=$NDKROOT/toolchains/llvm/prebuilt/darwin-x86_64/sysroot
export CROSS_COMPILE=$NDKROOT/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android31-
CC=${CROSS_COMPILE}clang++
$CC \
-I${PWD} \
-I${PLATFORM}/usr/include \
-Wall \
-Wcast-qual \
-Wextra \
-Wshadow \
-std=c++17 \
-DNDEBUG -O3 \
-DUSE_NEON=8 \
-DIS_64BIT \
-DUSE_PTHREADS \
-DUSE_POPCNT \
-pedantic \
-fno-exceptions \
-flto=full \
./thread.cpp \
./timeman.cpp \
./ucioption.cpp \
./nnue/evaluate_nnue.cpp \
./nnue/features/half_ka_v2_hm.cpp \
./misc.cpp \
./bitboard.cpp \
./benchmark.cpp \
./movepick.cpp \
./tune.cpp \
./evaluate.cpp \
./search.cpp \
./compression/zip.cpp \
./movegen.cpp \
./tt.cpp \
./main.cpp \
./position.cpp \
./uci.cpp \
-o pikafish