Skip to content

Commit 0002495

Browse files
committed
build.sh: support ANDROID_HOME instead of ANDROID_NDK
either env var works for `cargo ndk`, so let's accept either
1 parent 84074b0 commit 0002495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fi
6767

6868
if [ "$gradle_module" = "crypto" ]; then
6969
## NDK is needed for https://crates.io/crates/olm-sys
70-
if [ -z "$ANDROID_NDK" ]; then
70+
if [ -z "$ANDROID_NDK" && -z "$ANDROID_HOME" ]; then
7171
echo "please set the ANDROID_NDK environment variable to your Android NDK installation"
7272
exit 1
7373
fi

0 commit comments

Comments
 (0)