r/cpp • u/peppedx • Aug 25 '21
C++ modules and buildsystems
Hi all, not many news on this subject.
When do you think it is reasonable to expect module to be usable on Linux with GCC/clang using cmake/meson ?
4
u/stilgarpl Aug 25 '21
CMake has releases every 3 months or so... so half a year after GCC 12 comes out.
4
u/RoyBellingan Aug 25 '21
I tried using them with GCC11.2, I still had a good number of ICE and problem.
I will try again with GCC12
4
u/bigcheesegs Tooling Study Group (SG15) Chair | Clang dev Aug 26 '21
I expect we're still a a year or two away from modules implementations being stable enough to use and having enough buildsystem support for them.
SG15 will be discussing the CMake dep format proposal P1689 in the next few weeks, along with Bloomberg's paper that deals more with the issues that Debian-like package managers will have.
1
u/waruqi Oct 25 '21
xmake has supported c++ modules in latest. https://github.com/xmake-io/xmake/issues/1729
9
u/Mateuszz88 Aug 25 '21
CMake ticket: https://gitlab.kitware.com/cmake/cmake/-/issues/18355
I don't see any recent progress though...