android / android/ndk

[FR] NDK build supports C++ modules

Open
#1,855 9 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

### Description

CMake 3.26 with clang-16 provides preliminary support for c++ modules now, and for NDK we can specify the cmake version and `CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS` to enjoy c++ modules. But, for NDK build project, it does not look like an easy job to add c++ modules support from the user side.

Contributor guide

Open the contributing guide

Research direction

The issue names CMake 3.26, clang-16, CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS, and NDK build projects, but no repository files or tests. Start by examining how NDK build projects select and configure CMake and the compiler, then compare that flow with C++ modules support. Done should include a defined, working path for enabling C++ modules in an NDK build project.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system, compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.