Skip to content

Commit

Permalink
scripts/build-android-*.sh: bump ANDROID_PLATFORM to 24
Browse files Browse the repository at this point in the history
This fixes build errors related to fseeko, ftello, etc. in
googlebenchmark. The functions are available in __ANDROID_API__ >= 24.

PiperOrigin-RevId: 722814182
  • Loading branch information
xnnpack-bot committed Feb 3, 2025
1 parent 5e223a0 commit 7702e72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/build-android-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CMAKE_ARGS+=("-DHAVE_STD_REGEX=0")
# Android-specific options
CMAKE_ARGS+=("-DANDROID_NDK=$ANDROID_NDK")
CMAKE_ARGS+=("-DANDROID_ABI=arm64-v8a")
CMAKE_ARGS+=("-DANDROID_PLATFORM=android-21")
CMAKE_ARGS+=("-DANDROID_PLATFORM=android-24")
CMAKE_ARGS+=("-DANDROID_PIE=ON")
CMAKE_ARGS+=("-DANDROID_STL=c++_static")
CMAKE_ARGS+=("-DANDROID_CPP_FEATURES=exceptions")
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-android-armv7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CMAKE_ARGS+=("-DHAVE_STD_REGEX=0")
# Android-specific options
CMAKE_ARGS+=("-DANDROID_NDK=$ANDROID_NDK")
CMAKE_ARGS+=("-DANDROID_ABI=armeabi-v7a")
CMAKE_ARGS+=("-DANDROID_PLATFORM=android-14")
CMAKE_ARGS+=("-DANDROID_PLATFORM=android-24")
CMAKE_ARGS+=("-DANDROID_PIE=ON")
CMAKE_ARGS+=("-DANDROID_STL=c++_static")
CMAKE_ARGS+=("-DANDROID_CPP_FEATURES=exceptions")
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-android-x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CMAKE_ARGS+=("-DHAVE_STD_REGEX=0")
# Android-specific options
CMAKE_ARGS+=("-DANDROID_NDK=$ANDROID_NDK")
CMAKE_ARGS+=("-DANDROID_ABI=x86")
CMAKE_ARGS+=("-DANDROID_PLATFORM=android-14")
CMAKE_ARGS+=("-DANDROID_PLATFORM=android-24")
CMAKE_ARGS+=("-DANDROID_PIE=ON")
CMAKE_ARGS+=("-DANDROID_STL=c++_static")
CMAKE_ARGS+=("-DANDROID_CPP_FEATURES=exceptions")
Expand Down

0 comments on commit 7702e72

Please sign in to comment.