zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
A small quality-of-life improvement I thought of while trying to figure out where an `error.GenericPoison` was coming from. Example situation: ```zig fn foo() !void { return error.Foo; } fn bar()...
### Zig Version 0.10.0-dev.3986+e323cf126 ### Steps to Reproduce Here is a repro case: ```zig const std = @import("std"); fn StructArray(comptime T: type) type { // std.debug.assert(@alignOf(T) == 8); const field...
### Zig Version 0.10.0-dev.2473+e498fb155 ### Steps to Reproduce A test file for everything: ``` #include #include int main() { #ifdef __GLIBC__ printf("glibc_%d.%d\n", __GLIBC__, __GLIBC_MINOR__); #else printf("non-glibc\n"); #endif return 0; }...
### Zig Version 0.10.0-dev.2382+97816e3cb ### Steps to Reproduce For example: ```shell cd /tmp mkdir -p test1/lib test2/lib echo "void test() {}" > test1/lib/testlib.c echo "void test() {}" > test2/lib/testlib.c cd...
### Zig Version 0.9.1 ### Steps to Reproduce ```bash # on linux wget https://github.com/official-stockfish/Stockfish/archive/refs/heads/master.zip unzip master cd Stockfish-master/src make build ARCH=x86-64-modern COMP=mingw CXX="zig c++ -target x86_64-windows-gnu" ``` ### Expected Behavior...
### Zig Version 0.9.1 ### Steps to Reproduce 1. Install homebrew 2. Update zig formuae to 0.9.1 ```diff diff --git a/Formula/zig.rb b/Formula/zig.rb index 7219aa707b6feb..3d2d46e236219b 100644 --- a/Formula/zig.rb +++ b/Formula/zig.rb @@...
### Zig Version 0.10.0-dev.286+e23f7c01e ### Steps to Reproduce test.zig: ``` pub fn main() void {} ``` Have a `test` binary already on disk, from a prior compilation. I'm not sure...
### Zig Version 0.10.0-dev.295+f19b5ecf4 ### Steps to Reproduce This occurs when the `AutoArrayHashMap` key type is an enum with a single member **and** the value type is `void`. This construct...
### Zig Version 0.10.0-dev.495+254b8c8d1 ### Steps to Reproduce ``` echo 'pub fn main() void {}' > main.zig zig build-exe -target arm-linux-musleabi -mcpu arm926ej_s -lc main.zig ``` ### Expected Behavior `musleabi`...
### Zig Version 0.9.0 ### Steps to Reproduce Create build.zig with a static lib step that adds many c source files with lib.addCSourceFile (and many c flags). run: zig build...