Skip to content

Commit

Permalink
CMake: Fix build on Android NDK
Browse files Browse the repository at this point in the history
Android NDK does not have executables in the format of
aarch64-linux-android-clang++. Instead it provides executables in the
format aarch64-linux-android${ANDROID_ABI}-clang++. Since CMake 3.21 all
of this is handled by the toolchain file within Android NDK itself, so
there is no need to override the compilers anymore.
  • Loading branch information
p12tic committed Sep 20, 2022
1 parent c8a40e5 commit 0ebaa9a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmake/platforms/Android-aarch64-clang.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

include(${GEOGRAM_SOURCE_DIR}/cmake/platforms/Linux.cmake)

# Set the Android compilers
set(CMAKE_CXX_COMPILER aarch64-linux-android-clang++)
set(CMAKE_C_COMPILER aarch64-linux-android-clang)

set(VORPALINE_ARCH_64 true)

# No graphics (yet) for Android
Expand Down

0 comments on commit 0ebaa9a

Please sign in to comment.