Skip to content

Commit

Permalink
Prefer to use NDK 25.2.9519653 when building tflite for android.
Browse files Browse the repository at this point in the history
  • Loading branch information
Canming Huang committed Dec 7, 2023
1 parent 74f233d commit 505c8b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platforms/ubuntu/22.04/bazel_build_tflite
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ then
OUT_FOLDER="runtimes/ubuntu-x64/native"
fi

if [[ -z "$ANDROID_NDK_HOME" ]]; then
# $ANDROID_NDK_HOME is empty
if [ -d /usr/lib/android-sdk/ndk/21.4.7075529 ]; then
export ANDROID_NDK_HOME=/usr/lib/android-sdk/ndk/25.2.9519653
fi
fi

echo Output folder is $OUT_FOLDER

cd "$(dirname "$0")"
Expand Down

0 comments on commit 505c8b2

Please sign in to comment.