Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4.2k
    • Issues 4.2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Merge requests
  • !3606

Android: Update toolchain selection for NDK r19

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Brad King requested to merge brad.king/cmake:android-ndk-r19 into master Jul 25, 2019
  • Overview 4
  • Commits 3
  • Pipelines 1
  • Changes 2

The <ndk>/build/core/toolchains/*/setup.mk files no longer have any TOOLCHAIN_ROOT or TOOLCHAIN_VERSION fields. The TOOLCHAIN_ROOT is now hard-coded in <ndk>/build/core/default-build-commands.mk. The NDK build system now uses only a single toolchain in

<ndk>/toolchains/llvm/prebuilt/<host>

The compilers are always bin/{clang,clang++} and the binutils are always bin/$(TOOLCHAIN_NAME)-*. It does not use -gcc-toolchain.

For now CMake can continue to use -gcc-toolchain. In future work we may be able to switch to what the NDK buildsystem now does. NDK r19 still provides the GCC toolchains (without the compilers) suitable for use with -gcc-toolchain. They are located in

<ndk>/toolchains/<toolchain>/prebuilt/<host>

Find a GCC toolchain for the target platform without TOOLCHAIN_ROOT by globbing for one of the binutils.

Fixes: #18739 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: android-ndk-r19