zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.11.0 ### Steps to Reproduce and Observed Behavior Try compiling [Mold 2.4.0](https://github.com/rui314/mold/releases/tag/v2.4.0) using `zig c++` and it will return an error: ```plain [ 24%] Building CXX object...
Now that ZON files (Zig Object Notation) are a thing, they should be documented in langref ZON files described on #14523
**Adds** support for `local variable is never mutated`. **Adds** fixups for unused captures and unsused loop and block labels. Discarding of if/while/for/else/switch playloads is performed in-place, i.e. by capturing into...
The `no_follow` field was added to `OpenDirOptions` in e0b77a6b77614538d18b9f0b9e3e7e434ccee4ff by @kubkon to avoid deleting the target of symlinks during `deleteTree`: > Ensure Dir.deleteTree does not dereference symlinks > > Otherwise,...
### Zig Version 0.12.0-dev.1769+bf5ab5451 ### Steps to Reproduce and Observed Behavior When I add new translate-c/run-translated-c tests in the appropriate folder, the test isn't run when using the command `zig...
The problem: people may want to use libraries which could connect to things like Gvfs. The issue is that overriding stuff in `root` module is necessary to perform this. The...
> Reopening since... https://github.com/ziglang/zig/issues/14656 was closed, citing https://github.com/ziglang/zig/issues/1099. The two proposals are mutually exclusive with different use cases. > This issue strongly resembles https://github.com/ziglang/zig/issues/14656 which should provide a point of...
Extracted from #17209. I don't really know how to solve this problem, but at least here is a tracking issue for it. ```zig const std = @import("std"); pub fn main()...
Here is a snippet from LLVM showing how this is used: https://github.com/llvm/llvm-project/blob/8b8f2ef06e341ef634f85fa01800f4e441cacd91/llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp#L207-L219 Specifically for Zig, when I'm building a relocatable object to be linked against an older target, I need...
### Zig Version 0.11.0 ### Steps to Reproduce and Observed Behavior On Raspberry Pi 4B, run ``` zig build-exe lib/std/crypto/benchmark.zig -mcpu=baseline -OReleaseSafe --zig-lib-dir lib ./benchmark --filter aegis-256 ``` Will crash...