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 C++20 module #165

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Add C++20 module #165

wants to merge 12 commits into from

Conversation

Arthapz
Copy link

@Arthapz Arthapz commented Oct 19, 2023

This PR add a C++20 module, enable examples with the module when EXAMPLES_USE_MODULE define is set
and add xmake build system support (mainly to test module compilation, it's easier to write and use than CMake module support and i'm not a CMake user / expert)

the FROZEN_DONT_INCLUDE_STL can be set to remove #include of std lib for user that want to use C++23 std module
we need this because mixing #include <stdheader> / import <stdheader> with C++23 std module doesn't work well atm on clang/GCC/msvc

to try it

install xmake: https://xmake.io/#/guide/installation

> xmake f --enable_tests=y --enable_module=y
> xmake b
> xmake run frozen.tests
> xmake run frozen.example.<example_name>

coverage is supported by using xmake coverage mode

> xmake f -m coverage

@Arthapz Arthapz force-pushed the master branch 3 times, most recently from ac90df5 to 7e5f8f3 Compare March 21, 2024 20:21
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.

None yet

1 participant