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

Add module support #4

Merged
merged 14 commits into from
Aug 1, 2024
Merged

Add module support #4

merged 14 commits into from
Aug 1, 2024

Conversation

TinyTinni
Copy link
Owner

Modules are a nice C++20 feature but the support of the compilers and tooling can still be buggy.

It would be nice, if there is a module support who those who wants to try, but also, the old header includes should not break.

This PR adds module support while retaining the headers.

@TinyTinni
Copy link
Owner Author

TinyTinni commented Jun 15, 2024

could maybe be fixed with std module support, but this is not supported yet

https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html

Support for import std is limited to the following toolchain and standard library combinations:

  • Clang 18.1.2 and newer with -stdlib=libc++

  • MSVC toolset 14.36 and newer (provided with Visual Studio 17.6 Preview 2 and newer)

From own experience: gcc 14.1 and newer

@TinyTinni TinyTinni merged commit cfe5183 into main Aug 1, 2024
2 checks passed
@TinyTinni TinyTinni deleted the module-support branch August 1, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant