zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Helps (or Closes) #9278
These are small helpers that re-order the fields of a `packed struct` to provide either: - `Stage1Layout(T)` - Layout compatibility with stage1, a temporary helper until users can re-define their...
Boxes without check marks do not have test coverage. | | f16 | f32 | f64 | f128 | c_longdouble | |-------------|-----|-----|-----|------|--------------| | `@sqrt` | ✓ | ✓ | ✓...
Closes #1150 Closes #1188 Closes #1292 Closes #1385 Closes #1487 Closes #1719 Closes #1814 Closes #707
### Zig Version 0.10.0-dev.2473+e498fb155 Like the title says: zig cc frontend cannot compile a dynaimcally-linked musl binary. Created a separate issue as requested by @ifreund in https://github.com/ziglang/zig/issues/5364#issuecomment-1163025810 ### Full repro...
### Zig Version 0.10.0-dev.4430+78778899 ### Steps to Reproduce ```zig const std = @import("std"); const expect = std.testing.expect; test "bitcast vector to integer and back" { var x = @splat(16, true);...
* Port Boyer-Moore-Horspool algorithm and relevant tests from std.mem.indexOfPos * Remove TODO doc comment * Fix/provide doc comments
Summary: multiple `zig` invocations can stumble upon each other when they are creating glibc stubs. Steps to reproduce ------------------------- **main.c** ``` int main() {} ``` Command: run `zig c++` many...
### Zig Version 0.10.0-dev.4437+1e963053d ### Steps to Reproduce Try to compile stb_image v2.27 library: ```zig const c = @cImport({ @cDefine("STB_IMAGE_IMPLEMENTATION", {}); @cDefine("STBI_ONLY_PNG", {}); @cDefine("STBI_NO_STDIO", {}); @cInclude("stb_image.h"); }); pub fn main()...
### Zig Version 0.10.0-dev.4425+f36aee93c ### Steps to Reproduce This code should ignore sigpipe signal. I'm pretty sure it was working ```zig const std = @import("std"); pub fn main() !void {...