Bug 747311 - autodetect android_toolchain on Android/x86. r=glandium

This commit is contained in:
Makoto Kato 2012-04-27 14:45:38 +09:00
parent 7c25c7abcb
commit 347c7b2ab7
2 changed files with 18 additions and 2 deletions

View File

@ -400,7 +400,15 @@ case "$target" in
# With newer NDK, the toolchain path has changed.
if ! test -d "$android_toolchain" ; then
android_toolchain="$android_ndk"/toolchains/arm-$kernel_name-androideabi-4.4.3/prebuilt/$kernel_name-x86
case "$target_cpu" in
arm)
target_name=arm-linux-androideabi-4.4.3
;;
i?86)
target_name=x86-4.4.3
;;
esac
android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86
fi
if test -d "$android_toolchain" ; then

View File

@ -391,7 +391,15 @@ case "$target" in
# With newer NDK, the toolchain path has changed.
if ! test -d "$android_toolchain" ; then
android_toolchain="$android_ndk"/toolchains/arm-$kernel_name-androideabi-4.4.3/prebuilt/$kernel_name-x86
case "$target_cpu" in
arm)
target_name=arm-linux-androideabi-4.4.3
;;
i?86)
target_name=x86-4.4.3
;;
esac
android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86
fi
if test -d "$android_toolchain" ; then