1
Development / Re: Support for c++20 modules
« Last post by JorgenBest on Today at 06:51:01 pm »I like to test the new module possibility and like it so far (just shortly started). I made a project template for using it with gcc or Clang (Arch Linux).
What I can do with modules:
1. use the std module with all library features for GCC or CLang
2. create my own modules
Only downsite is: when I add new modules I have to set the priority weight for compiling lower (e.g. to 10) for gcc. For Clang I need also to create a custom command to build and copy that in (copy the same code for every file).
See the attached main.cpp with a HelloWorld example. All other files can be constructed from this as well as the configuration in codeblocks. I hope this helps, any one how likes to try modules.
What I can do with modules:
1. use the std module with all library features for GCC or CLang
2. create my own modules
Only downsite is: when I add new modules I have to set the priority weight for compiling lower (e.g. to 10) for gcc. For Clang I need also to create a custom command to build and copy that in (copy the same code for every file).
See the attached main.cpp with a HelloWorld example. All other files can be constructed from this as well as the configuration in codeblocks. I hope this helps, any one how likes to try modules.