zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
LLVM has trouble compiling the old implementation, (presumably) because `leading_zeros` is thought to be a `u7` rather than a `u6`, which means `63 - clz` is not equivalent to `63...
### Zig Version 0.11.0-dev.1869+df4cfc2ec ### Steps to Reproduce and Observed Behavior Enable the tests added by https://github.com/ziglang/zig/pull/15981 (Search for the issue number of this issue.) I haven't bisected the problem...
From https://github.com/ziglang/zig/pull/15981 and documented in https://github.com/ziglang/zig/issues/16108 . This is a PR that shows the CI failure until it gets fixed. (Is this object useful to exist on github? is it...
### Zig Version `0.11.0-dev.3655+a2f54fce5` worked in `0.11.0-dev.3395+1e7dcaa3a` ### Steps to Reproduce and Observed Behavior ```zig const std = @import("std"); x: void, pub fn main() !void { @compileLog(@typeInfo(@This()).Struct.fields[0].name[0..]); } ``` Output:...
This patch tweaks Zig's behavior to prefer native SDK when compiling on an Apple platform for an Apple platform, if available. This also includes the `build.zig` code path in `main.zig`...
…en there is thread local storage involved
We can use RtlEqualUnicodeString via eqlIgnoreCaseWTF16 to get Unicode-aware case insensitive path component comparison (but need to convert the components to UTF-16 first) Addresses some TODOs I noticed while looking...
It's easier to get M1 hardware for testing than x86_64-macos. This addresses the current bottleneck in our CI pipeline.
**It is highly recommended you read the commit descriptions**. A lot of information in these commit descriptions. The main focus here was fixing the fact that `std.os.exit` is not appropriately...
### Zig Version 0.11.0-dev.3395+1e7dcaa3a ### Steps to Reproduce and Observed Behavior try to compile any zig program (including the compiler itself) on macOS 14; current output: ```console error(link): undefined reference...