Skip to content

Commit 1f93c92

Browse files
committed
NDK fixes.
1 parent 44cd103 commit 1f93c92

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docker/android-ndk.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ NDK_URL="https://dl.google.com/android/repository/${NDK_FILENAME}"
2121
main() {
2222
local arch="${1}"
2323

24-
install_packages curl unzip
24+
install_packages curl unzip python
2525

2626
local td
2727
td="$(mktemp -d)"
@@ -31,7 +31,10 @@ main() {
3131
unzip -q "${NDK_FILENAME}"
3232
rm "${NDK_FILENAME}"
3333
pushd "android-ndk-${ANDROID_NDK}"
34-
mv "toolchains/llvm/prebuilt/${NDK_PLATFORM}" /android-ndk
34+
./build/tools/make_standalone_toolchain.py \
35+
--install-dir /android-ndk \
36+
--arch "${arch}" \
37+
--api "${ANDROID_SDK}"
3538

3639
# clean up unused toolchains to reduce image size
3740
local triple

0 commit comments

Comments
 (0)