zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
```zig test "mod129" { const base = 10; var a: @IntType(false, 129) = 0; const digit = a % base; } ``` results in compiler error: `LLVM ERROR: Unsupported library...
I tried to compile an old Win32 C program with a `build.zig` and didn't see an obvious happy path to compile an `.rc` file into a `.res` file and add...
There has been a few times where I have wanted to know if a specific log level and scope combination is enabled. This PR adds: ```zig /// Determine if a...
### Zig Version 0.11.0-dev.5+ddb9eac05 ### Steps to Reproduce and Observed Behavior I'm getting a `FileNotFound` error when building any projects with `-Drelease-small` on Windows, both with `-fstage1` and `-fnostage1`. The...
### Zig Version 0.11.0-dev.3+0bbb00035 ### Steps to Reproduce and Observed Behavior ```zig const std = @import("std"); test { var x: c_int = 5; var y: c_int = -2; try std.testing.expectEqual(@as(c_int,...
### Zig Version 0.10.0-dev.3880+e2bb92b2e ### Steps to Reproduce and Observed Behavior When an enum type is used in more than one `OptionStep` duplicate declarations are created in the resulting package...
### Zig Version 0.9.1 ### Steps to Reproduce ```bash ❯ cat hello.c #include int main(int argc, char **argv) { fprintf(stderr, "Hello, World!\n"); return 0; } ❯ zig cc -o hello...
### Zig Version 0.10.0-dev.4700+5f5a20eba ### Steps to Reproduce and Observed Behavior hello.c: ```c int main() { return 0; } ``` Command: ``` zig build-exe hello.c -ofmt=c Release: [1] 20487 segmentation...
### Zig Version 0.11.0-dev.1+841235b3f ### Steps to Reproduce and Observed Behavior ```zig const std = @import("std"); test { try std.testing.expect(init(.constructed, .context) == 0b10100000); } fn init(pc: enum(u1) { primitive, constructed...
### Zig Version 0.11.0-dev.3+0bbb00035 ### Steps to Reproduce and Observed Behavior The following program causes the compiler to SIGABRT when compiled with stage1. Build commandline: `zig build-lib issue-repro.zig --name issue-repro...