@@ -8,12 +8,18 @@ set -ex
8
8
curl -O http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin
9
9
chmod +x android-ndk-r10e-linux-x86_64.bin
10
10
./android-ndk-r10e-linux-x86_64.bin > /dev/null
11
+ # We use android-9 on arm and x86 for maximum compatibility with systems
12
+ # like Firefox. We use 21 for aarch64 and x86-64 because that is the
13
+ # earliest API level at which they are supported.
11
14
bash android-ndk-r10e/build/tools/make-standalone-toolchain.sh \
12
- --platform=android-18 \
15
+ --platform=android-9 \
13
16
--toolchain=arm-linux-androideabi-4.8 \
14
- --install-dir=/android/ndk-arm-18 \
17
+ --install-dir=/android/ndk-arm-9 \
15
18
--ndk-dir=/android/android-ndk-r10e \
16
19
--arch=arm
20
+ # NB: this arm toolchain is used for testing the libc crate to ensure it
21
+ # works against the most recent version of android. It cannot be combined
22
+ # with the previous toolchain!
17
23
bash android-ndk-r10e/build/tools/make-standalone-toolchain.sh \
18
24
--platform=android-21 \
19
25
--toolchain=arm-linux-androideabi-4.8 \
@@ -27,7 +33,7 @@ bash android-ndk-r10e/build/tools/make-standalone-toolchain.sh \
27
33
--ndk-dir=/android/android-ndk-r10e \
28
34
--arch=arm64
29
35
bash android-ndk-r10e/build/tools/make-standalone-toolchain.sh \
30
- --platform=android-21 \
36
+ --platform=android-9 \
31
37
--toolchain=x86-4.9 \
32
38
--install-dir=/android/ndk-x86 \
33
39
--ndk-dir=/android/android-ndk-r10e \
0 commit comments