4 ms·
`zcc` would be even better.
by fractalb 5y ago
`zcc` would be even better.
- tempodox 5y ago$ alias zcc='zig cc' Only works interactively, though.
- Andoryuuta 5y agoHaving "cc" as a sub-command with a space has caused some issues with Go (cgo), make, autotools, etc [0]. The latest proposal from andrewrk is a new zig subcommand which would automatically generate wrappers ("zig-cc", "zig-c++", etc) for for the target, then set them in the current env ("CC=zig-cc", "CXX=zig-c++") [1]. [0]: https://github.com/ziglang/zig/issues/8716 https://github.com/ziglang/zig/issues/8716 [1]: https://github.com/ziglang/zig/issues/8973 https://github.com/ziglang/zig/issues/8973