zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.12.0-dev.1835+697b8f7d2 ### Steps to Reproduce and Observed Behavior Compile example program with `zig build-obj runtime_safety_switch_prong_error.zig` `runtime_safety_switch_prong_error.zig`: ```zig pub fn panic(_: []const u8, _: @TypeOf(@errorReturnTrace()), _: ?usize) noreturn...
In line with #18067, add checked equivalents to `*AssumeCapacity` for working with non-resizable `ArrayListUnmanaged`s.
Fixes #17323 Extracted common branch from prongs of switch on `air_tag`.
Currently, `std.fs.Dir.makeOpenPath` optimistically tries to open an existing directory, falling back to creating it and then opening it if it did not exist. This leads to syscalls like this in...
(wip, will clean up and make easier to review before removing draft status)
### Zig Version 0.12.0-dev.1849+bb0f7d55e ### Steps to Reproduce and Observed Behavior I have a project where I need to cross-compile to RPi using a 3rd party library that I don't...
### Zig Version master ### Steps to Reproduce and Observed Output I followed the instructions on the Github README for a boostrap compiler without LLVM: ``` $ cc -o bootstrap...
Fixes #7357
Adds a variant to the LazyPath union representing a parent directory of a generated path. ```zig const LazyPath = union(enum) { generated_dirname: struct { generated: *const GeneratedFile, up: usize, },...