Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,224
    • Issues 3,224
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 13
    • Merge Requests 13
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Merge Requests
  • !3606

Closed
Opened Jul 25, 2019 by Brad King@brad.kingOwner
  • Report abuse
Report abuse

Android: Update toolchain selection for NDK r19

  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: cmake/cmake!3606
Source branch: android-ndk-r19