logoalt Hacker News

jjmarryesterday at 8:09 PM4 repliesview on HN

You don't on new projects. CMake + ninja has support for modules on gcc, clang, and MSVC.

This should be your default stack on any small-to-medium sized C++ project.

Bazel, the default pick for very large codebases, also has support for C++20 modules.


Replies

VerifiedReportsyesterday at 8:47 PM

Thanks. It's been a long time since I started a C++ project, and I've never set up any build chain in Visual Studio or Xcode other than the default.

dupedtoday at 12:49 AM

I have yet to see modules in the wild. What I have seen extensively are header-only projects.

show 2 replies
sgtyesterday at 8:53 PM

How about using Zig to build C++ projects?

show 1 reply