2 ms·
The module system in CPP is dead on arrival. Almost no libraries and build systems support them. Modules still produce bad output on gcc.
by selfmodruntime 4y ago
The module system in CPP is dead on arrival. Almost no libraries and build systems support them. Modules still produce bad output on gcc.
- mathstuf 4y agoIt is being worked on (at the build system level). Even so, I don't think Linux would support modules because it'd require some…unfortunate behaviors to support in `make`, namely at least one recursive make level. Though if `gmake` is assumed, there is `libcody` support that's in a patch that can do it without recursive `make` at the expense of having an unknown number of outstanding compilation processes open waiting to figure out what their topological order is at build time. I do not know what the behavior of such a solution is in the presence of import cycles or unsatisfied imports, but that's also why I prefer the "scanning" solution. FD: CMake developer working on C++ modules support.