mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05:00
97bca2f9fa
The NDK build system now uses only a single toolchain in
<ndk>/toolchains/llvm/prebuilt/<host>
Its compilers are always `bin/{clang,clang++}` and its binutils are
always `bin/<triple>-*`. It is a standalone toolchain:
* The Anrdoid API level is specified at the end of `--target=`.
* The standard library may be specified via `-stdlib=`.
* No need to pass system includes or libraries explicitly.
* No need to pass `--sysroot` or `-gcc-toolchain`.
Teach CMake to recognize NDK versions that have a unified
toolchain with its own sysroot and use the above approach.
Fixes: #18739
14 lines
553 B
Plaintext
14 lines
553 B
Plaintext
^CMake Error at .*/Modules/Platform/Android/Determine-Compiler-NDK.cmake:[0-9]+ \(message\):
|
|
Android: The CMAKE_ANDROID_NDK_TOOLCHAIN_VERSION value 'badver' is not(
|
|
supported by this NDK. It must be 'clang' or not set at all\.| one
|
|
of the allowed forms:
|
|
|
|
<major>.<minor> = GCC of specified version
|
|
clang<major>.<minor> = Clang of specified version
|
|
clang = Clang of most recent available version
|
|
)
|
|
Call Stack \(most recent call first\):
|
|
.*
|
|
ndk-badver.cmake:1 \(enable_language\)
|
|
CMakeLists.txt:3 \(include\)
|