Skip to content

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 and i can strip it from PR if u want)

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 --tests=y --module=y --std_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 2 times, most recently from f9b71e7 to 952f918 Compare October 19, 2023 18:23
@Arthapz Arthapz force-pushed the master branch 4 times, most recently from 7e5f8f3 to c436e2d Compare March 21, 2024 20:23
@Arthapz Arthapz force-pushed the master branch 2 times, most recently from c388069 to b0f5426 Compare October 27, 2024 14:17
@Arthapz Arthapz force-pushed the master branch 3 times, most recently from 1e3e829 to a41257d Compare April 19, 2025 19:47
@Arthapz Arthapz force-pushed the master branch 2 times, most recently from bd82d19 to 0117717 Compare October 21, 2025 00:08
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