News for hackers. Stuff that matters.
Re:Using Zig as cross-platform C toolchain by flohofwoe on Monday February 28, 2022 @07:32AM (#30499119)
Yes, Zig is also a complete C++ and ObjC/C++ toolchain. For some operating system it also comes with system headers (e.g. for building Win32 or macOS applications).

It should be possible to use Zig as clang replacement in traditional C/C++ build systems, just by replacing the compiler invocation with 'zig cc', although I heard this sometimes causes subtle problems because of the space between 'zig' and 'cc', so it probably needs to be wrapped with a script file or maybe alias.

There are no comments on this comment yet.