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,226
    • Issues 3,226
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 10
    • Merge Requests 10
  • 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
  • !3612

Merged
Opened Jul 26, 2019 by Brad King@brad.kingOwner

Android: Use unified toolchain in NDK r19+

  • Overview 5
  • Commits 5
  • Pipelines 1
  • Changes 21

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 (closed)

Assignee
Assign to
Reviewer
Request review from
3.16.0
Milestone
3.16.0 (Past due)
Assign milestone
Time tracking
Reference: cmake/cmake!3612
Source branch: android-ndk-r19