zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
As far as I know, there is no specification and the "libgcc code is the specification". From`libgcc/config/rs6000/float128-ifunc.c` and those looks to be the complete list judging from what we already...
### Zig Version 0.11.0-dev.3316+ec58b475b ### Steps to Reproduce and Observed Behavior Create the two files and run `zig build`. `main.c` ```C #include int global = 1; int main() { int...
This inline assembly does `exit(0)` on x86_64 linux: ```zig asm volatile ("syscall" : [ret] "={rax}" (-> usize) : [number] "{rax}" (60), [arg1] "{rdi}" (0) : "rcx", "r11"); ``` Here are...
Strap your jet pack on because we're going for a pie-in-the-sky adventure. I propose a builtin function called `@resource_acquire()` which returns a u64. This is an opaque identifier which is...
with this PR: - fixed getdents signature for freebsd, openbsd, dragonfly - freebsd 13.2 passes `zig test lib/std/std.zig` - openbsd builds stage3 tested on: - freebsd 13.2, 13.1 (amd64) -...
Currently we have this: https://github.com/ziglang/zig/blob/1253d591be2aeea49c0b67ce0416237060e78a57/lib/std/Build/Step/Run.zig#L39-L40 This requires the stdin to be passed to the child process to be buffered in a slice. Sometimes this is handy, but other times, the...
### Zig Version 0.11.0-dev.3395+1e7dcaa3a ### Steps to Reproduce and Observed Behavior I could be doing something wrong, but here are the steps to reproduce: Your standard build.zig (I only changed...
Hi, For whatever reason, trying to install a nightly build of Zig via Homebrew on an M1 Mac is failing, as it seems like brew fails to install necessary dependencies....
Supercedes https://github.com/ziglang/zig/pull/15560. Resolves https://github.com/ziglang/zig/issues/6363. I tried to touch other files as little as possible (since idk what core team wants to do with new zig code), so most of the...
Changes the implementation behind `cmakedefine` and `cmakedefine01` to match the actual cmake behavior. Tested against https://github.com/Jan200101/cmakedefine-test, which can configure a test header against cmake, meson and zig. The diff between...