Skip to content
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

C++ modules #55

Open
friendlyanon opened this issue Apr 17, 2022 · 6 comments
Open

C++ modules #55

friendlyanon opened this issue Apr 17, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@friendlyanon
Copy link
Owner

This issue is just for tracking the progress of modules.

At the moment, no generally available compiler seems to properly support modules.

CMake is also designing its API to properly integrate C++ modules: https://discourse.cmake.org/t/api-design-c-modules-source-listings-and-interface-properties/5389

@friendlyanon friendlyanon added the enhancement New feature or request label Apr 17, 2022
@ClausKlein
Copy link

Starting with CMake v3.28 the Module support in stable.

MS VC 2022 und clang-17 are fully working.

@friendlyanon
Copy link
Owner Author

Based on comments in https://old.reddit.com/r/cpp/comments/1b0zem7/what_is_the_state_of_modules_in_2024/ things aren't quite there yet. I have to also take care that things can be run in CI, so GitHub Actions also needs the necessary infra to enable that. Best I can do once compilers are better with modules is put up an example repository with custom tooling on the wiki page.

@ClausKlein
Copy link

How can I help to go forward to implement this issue?

see too https://discourse.cmake.org/t/building-installing-and-consuming-shared-libraries-with-c-20-modules/10576

@friendlyanon
Copy link
Owner Author

I'll only add modules stuff to the templates once import std; works in GitHub Actions with the pre-installed toolchains. AFAIK, libstdc++ hasn't even been modularized yet.

@ConorWilliams
Copy link

Looking forward to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants