zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.12.0-dev.3434+e90583f5d ### Steps to Reproduce and Observed Behavior This code produces a compiler crash on master: ```zig const std = @import("std"); pub const attributes = struct {...

consider the following Zig code: ```zig const std = @import("std"); pub fn main() !void { var x = foo("hello"); x.len -= 1; std.debug.print("{d}\n", .{x}); } fn foo(a: []const u8) ![]const...
``` $ zig build -p haiku -Dno-lib -Dtarget=x86_64-haiku -Dcpu=x86_64_v2 --libc haiku.libc ``` ``` ~> ./zig build-obj hello.zig -target native-haiku ~> cc -o hello hello.o ~> ./hello Hello, world! ``` *...
### Zig Version 0.11.0 (homebrew) ### Steps to Reproduce and Observed Behavior I updated my Mac from version 13.? to 14.4 and I can no longer run zig build. I...
### Zig Version 0.11.0 ### Steps to Reproduce and Observed Output One of my major critiques of the current zig build system is that output when compiling your code just...
This commit changes how we represent comptime-mutable memory (`comptime var`) in the compiler in order to implement the intended behavior that references to such memory can only exist at comptime....
Salvaging the useful parts of #19347 Closes #12963
### Zig Version 0.12.0-dev.1856+3f7e799 ### Steps to Reproduce and Observed Behavior Try building https://github.com/MidstallSoftware/eudev.zig to target glibc, it will fail. ``` install └─ install eudev └─ install udevadm └─ zig...