First step to install cxx_module#92
Conversation
|
Now it install the following @neatudarius what do you think about that? |
dietmarkuehl
left a comment
There was a problem hiding this comment.
The changes look good. The only bit which I'm a bit concerned about is disabling g++ on Linux.
| # TODO: sanitizer: [debug, release, asan, usan, tsan, lsan, msan] | ||
| preset: [debug, release] | ||
| compiler: [g++-14, clang++-19] | ||
| # TODO: compiler: [g++-15, clang++-19] |
There was a problem hiding this comment.
g++ is the default compiler on Linuxes. I understand that modules are only [properly] implemented with g++-15 but it seems unfortunate to remove the default compiler entirely: is it possible to setup cmake to use modules only for some compilers?
There was a problem hiding this comment.
This should be possible, fmt, boost do so
Is g++15 available to install on ubuntu 24.04?
If so, we should try it.
On macOS, I have only g++14 which fail to compile the module code.
| # Note that scanning is only performed if C++20 or higher is enabled for the target. Scanning for modules in the target's | ||
| # sources belonging to file sets of type CXX_MODULES is always performed. | ||
| # not needed: set(CMAKE_CXX_SCAN_FOR_MODULES ON) | ||
|
|
There was a problem hiding this comment.
I had problems without this definition. Adding it resulted in things building on MacOS. Probably this part of the code can be removed.
fixes issue #93