-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] NDK build supports C++ modules #1855
Comments
So in the end, is there support for modules or not? Can eat an example of successful implementation? |
It's not something we currently have the resources to investigate for ndk-build. If you use CMake that doesn't matter: https://www.kitware.com/import-cmake-c20-modules/ |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I've recently tested C++20 modules support in the latest ndk release, and there seems to be a bug in the clang driver preventing it to work. I have correctly set up modules in CMake 3.28, but the clang driver is unable to find it during compilation and fails with the usual |
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.The text was updated successfully, but these errors were encountered: