Update setenv-android.sh script

This commit is contained in:
Jeffrey Walton 2021-02-05 11:11:56 -05:00
parent 93f260ac78
commit 60f85a37ab
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -248,7 +248,6 @@ if [[ ! -e "$ANDROID_NDK_ROOT/sources/android/cpufeatures/cpu-features.h" ]]; th
echo "ERROR: Unable to locate cpu-features.h" echo "ERROR: Unable to locate cpu-features.h"
[ "$0" = "${BASH_SOURCE[0]}" ] && exit 1 || return 1 [ "$0" = "${BASH_SOURCE[0]}" ] && exit 1 || return 1
fi fi
chmod ugo+r,ugo-x cpu-features.h
if [[ ! -e "$ANDROID_NDK_ROOT/sources/android/cpufeatures/cpu-features.c" ]]; then if [[ ! -e "$ANDROID_NDK_ROOT/sources/android/cpufeatures/cpu-features.c" ]]; then
echo "ERROR: Unable to locate cpu-features.c" echo "ERROR: Unable to locate cpu-features.c"
@ -273,7 +272,7 @@ sed -e 's/p = memmem/p = (const char*)memmem/g' \
cpu-features.c > cpu-features.c.fixed cpu-features.c > cpu-features.c.fixed
mv cpu-features.c.fixed cpu-features.c mv cpu-features.c.fixed cpu-features.c
# Fix permissions # Fix permissions. For some reason cpu-features.h is +x.
chmod ugo+r,ugo-x cpu-features.h cpu-features.c chmod ugo+r,ugo-x cpu-features.h cpu-features.c
##################################################################### #####################################################################