Skip to content

Commit 7f6bfe5

Browse files
neonichuAndrewSB
authored andcommitted
Fix for Android NDK r11c
Seems like `RELEASE.TXT` is gone, so `arch` is now used to determine if we're running on 64bit or not. I'm unsure how to properly check for this on Windows, though.
1 parent 5fa990b commit 7f6bfe5

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

setCrossEnvironment-armeabi-v7a.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ IFS='
77

88
MYARCH=linux-x86_64
99
if uname -s | grep -i "linux" > /dev/null ; then
10-
MYARCH=linux-x86_64
10+
MYARCH=linux-`arch`
1111
fi
1212
if uname -s | grep -i "darwin" > /dev/null ; then
1313
MYARCH=darwin-x86_64

setCrossEnvironment-armeabi.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ IFS='
55

66
MYARCH=linux-x86_64
77
if uname -s | grep -i "linux" > /dev/null ; then
8-
MYARCH=linux-x86_64
8+
MYARCH=linux-`arch`
99
fi
1010
if uname -s | grep -i "darwin" > /dev/null ; then
1111
MYARCH=darwin-x86_64
@@ -18,9 +18,6 @@ NDK=`which ndk-build`
1818
NDK=`dirname $NDK`
1919
#NDK=`readlink -f $NDK`
2020

21-
grep "64.bit" "$NDK/RELEASE.TXT" >/dev/null 2>&1 && MYARCH="${MYARCH}_64"
22-
23-
#echo NDK $NDK
2421
GCCPREFIX=arm-linux-androideabi
2522
[ -z "$NDK_TOOLCHAIN_VERSION" ] && NDK_TOOLCHAIN_VERSION=4.9
2623
[ -z "$PLATFORMVER" ] && PLATFORMVER=android-15

setCrossEnvironment-x86.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ IFS='
55

66
MYARCH=linux-x86_64
77
if uname -s | grep -i "linux" > /dev/null ; then
8-
MYARCH=linux-x86_64
8+
MYARCH=linux-`arch`
99
fi
1010
if uname -s | grep -i "darwin" > /dev/null ; then
1111
MYARCH=darwin-x86_64

0 commit comments

Comments
 (0)