zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
fixup of 67d5bfefba48d28c02e2841f1a47a213d28d4693
Zig Version: `0.10.0-dev.3981+60678f5ba` Steps to reproduce: ``` const std = @import("std"); test { var a: []const u8 = "My funny string"; var b: [128]u8 = undefined; const key = [32]u8{...
``` In file included from /home/andy/dev/zig/build/lib/zig/libc/glibc/sysdeps/arm/crti.S:44: In file included from /home/andy/dev/zig/build/lib/zig/libc/glibc/sysdeps/unix/sysv/linux/arm/sysdep.h:28: In file included from /home/andy/dev/zig/build/lib/zig/libc/glibc/sysdeps/unix/arm/sysdep.h:19: /home/andy/dev/zig/build/lib/zig/libc/glibc/sysdeps/arm/sysdep.h:25:11: fatal error: 'arm-features.h' file not found # include ^~~~~~~~~~~~~~~~ 1 error generated. The...
Status quo: ``` @setCold(is_cold: bool) void ``` > Tells the optimizer that a function is rarely called. Proposal: ``` @cold() void ``` Annotates that it is relatively uncommon for control...
### Zig Version 0.10.0-dev.3978+4fd4c733d ### Steps to Reproduce ```zig fn f(comptime _: fn (anytype) void) void {} fn g(_: anytype) void {} test { f(g); } ``` ### Expected Behavior...
### Zig Version 0.10.0-dev.3978+4fd4c733d ### Steps to Reproduce ```zig const std = @import("std"); pub fn main() !void { var x: std.meta.Vector(2, u15) = .{ 1, 4 }; std.debug.print("{} {}\n", .{...
### Zig Version 0.10.0-dev.3978+4fd4c733d ### Steps to Reproduce Run the following program using the stage2 compiler (and a recent version of Zig). ```zig const std = @import("std"); // This interface...
Previous release issue: https://github.com/ziglang/zig/issues/12808 [glibc 2.36 was released](https://sourceware.org/pipermail/libc-alpha/2022-August/141193.html). Time to follow the [update procedure](https://github.com/ziglang/zig/wiki/Updating-libc#glibc). Major new features that may be relevant: ``` * Support for DT_RELR relative relocation format has...
Previous release issue: https://github.com/ziglang/zig/issues/10308 [glibc 2.35 was released](https://sourceware.org/pipermail/libc-alpha/2022-February/136040.html). Time to follow the [update procedure](https://github.com/ziglang/zig/wiki/Updating-libc#glibc). Major new features that may be relevant: ``` * All programs and the testsuite in glibc...