zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Follow up to #12226, implements the compromise detailed in https://github.com/ziglang/zig/issues/12211#issuecomment-1196011590
### Zig Version b88151 (build fails) ### Steps to Reproduce Apple M1 Max, macOS Version 12.4 (Build 21F79). llvm 14.0.6 and zlib installed with homebrew. Using build instructions for M1...
Add a `--coverage` argument to `zig test` and have it generate a nice report.
This is a rudimentary (and arguably cursed) implementation of comptime logging that works in stage 2. I'm not sure we'll want to merge this, but it might be useful so...
### Zig Version 0.10.0-dev.3384+ae8394af5 ### Steps to Reproduce The gist is: `./stage2/bin/zig build -p stage3 -Denable-llvm -Dconfig_h=build/config.h --verbose-link --verbose-air` More exactly, on my ubuntu 22.04 system I checked out the...
As discussed in Discord. Before:  After: 
All the code for this function already exists, but only ChildProcess.exec was allowed to use the code.
### Zig Version 0.10.0-dev.3383+3cf8f283d ### Steps to Reproduce Wasn't able to reproduce locally with a new Zig project, but you can see the bug in the following files: - https://github.com/getty-zig/getty/blob/6a1ea14ec84b55ea5371db64084d0eda5f8493bc/src/ser/interfaces/map.zig#L1...
UPD: See https://github.com/ziglang/zig/pull/12151#pullrequestreview-1044192217
If you have multiple llvm-config executables in your path, and all of them cause failures, then only the last failure will be printed. This can cause confusion when the multiple...