zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
To facilitate https://github.com/ziglang/zig/issues/1840, this commit slims `std.windows.kernel32` to only have the functions needed by the standard library. Since this will break projects that relied on these, I offer these solutions:...
### Zig Version 0.12.0-dev.2058+04ac028a2 ### Steps to Reproduce and Observed Behavior Run `zig build -Dcpu=sifive_u74` in this repo on a Sifive U74 system such as a VisionFive 2. This can...
### Zig Version 0.12.0-dev.309+402468b21 ### Steps to Reproduce and Observed Behavior Occasionally, the [`rename directories` test in `fs/test.zig`](https://github.com/ziglang/zig/blob/cb6201715a7bcae2b278811186afc17a697b25f7/lib/std/fs/test.zig#L711-L741) will fail on the `aarch64-windows` CI with `AccessDenied` when trying to rename...
### Zig Version 0.12.0-dev.3686+3adfaf91f ### Steps to Reproduce and Observed Behavior add a Run step in build.zig that assembles some asm program using NASM, and use the -MF option to...
### Zig Version 0.12.0-dev.3686+3adfaf91f ### Steps to Reproduce and Observed Behavior When importing this C header: ```zig const loader = @cImport(@cInclude("mach-o/loader.h")); ``` using `loader.LC_LOAD_WEAK_DYLIB` leads to this compile error: ```bash...
extracted from #367 * explain purpose, it's supposed to replace make/cmake * example of building a zig executable * example of building a C library * go over all the...
### Zig Version 0.9.1 ### Steps to Reproduce Import "windows.h" and try to use LOWORD and HIWORD macros. ### Expected Behavior Works. ### Actual Behavior `error: expected type 'c_ulonglong', found...
### Zig Version 0.12.0-dev.3677+22a97cd23 ### Steps to Reproduce and Observed Behavior ```bash $ mkdir -p /tmp/libtest/mylib $ cd /tmp/libtest $ echo 'void f() {}' > mylib/mylib.c $ echo 'void f();'...
I originally wrote up this proposal in a comment on #5038. I've remained a fan of it since then, so thought it was worth promoting to a proper proposal. ---...
This is a proposal to add `@packSelect` and `@unpackSelect`. These operations are analogous to pdep/pext/@extractBits/@depositBits (see: https://github.com/ziglang/zig/issues/14995), except this proposal is for Vectors, not fixed-length bitvectors (i.e. integers). # packSelect...