Re:Using Zig as cross-platform C toolchain
by nicoburns on Monday February 28, 2022 @05:09AM
(#30498271)
I haven't actually used it myself, but I believe yes to both. It wraps clang, and while it's not quite as simple as "just a wrapper" it should be able to do anything that clang can do.
[ Parent
| on HN ]
Re:Using Zig as cross-platform C toolchain
by cyber_kinetist on Monday February 28, 2022 @05:42AM
(#30498450)
Repeating my other comment, but I'm also interested if the STL also works out-of-the-box (is libc++ included?). Without it you can't really say it supports C++.
Re:Using Zig as cross-platform C toolchain
by nicoburns on Monday February 28, 2022 @07:37AM
(#30499157)
Can't find a definitive answer to this, but this merged PR looks like it might implement support for this: https://github.com/ziglang/zig/issues/4786
Re:Using Zig as cross-platform C toolchain
by cyber_kinetist on Monday February 28, 2022 @07:53AM
(#30499290)
That's good news. I might try using it someday...