zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
The `bit_buffer` was also changed to hold 8 bits rather than 7, which is necessary for when you use `countBits(0)` on `.{0xFF}`, for example. There are no bits processed in...
I think it will be pretty useful to be able to pass flags to clang/llvm itsef. I use them quite often in low level scenarious. For it to be possilbe,...
Fixes #4501.
Follow-up I noticed when reviewing #19348. https://github.com/ziglang/zig/blob/54c08579e4859673391843182aa2fd44aabbf6cf/lib/std/Thread.zig#L835-L837 Used here: https://github.com/ziglang/zig/blob/54c08579e4859673391843182aa2fd44aabbf6cf/lib/std/Thread.zig#L910 However, if you look above, it's one allocation that is already page-aligned... there's no point in going through an allocator...
Moving `__GLIBC__` to the top is needed so that commits https://github.com/ziglang/zig/commit/f9c9ae84c6c0773ab8dc710cae3ce9024ca1e91c and https://github.com/ziglang/zig/commit/0afead56516c13c007b99d4b252db064080e2679 actually work.
### Zig Version 0.12.0-dev.3245+4f782d1e8 ### Steps to Reproduce and Observed Behavior add autodoc generation like the following to a build.zig and run `zig build` ```zig b.installDirectory(.{ .source_dir = exe.getEmittedDocs(), .install_dir...
### Zig Version 0.12.0-dev.1664+8ca4a5240 ### Steps to Reproduce and Observed Behavior ```zig pub fn main() void { var foo = true; foo = false; const x = comptime foo; _...
### Zig Version 0.12.0-dev.694+937e8cb70 ### Steps to Reproduce and Observed Behavior Reproduction: https://github.com/mitchellh/zig-framework-bug If you run `zig build` from within a `nix shell`, you'll get an error (shown below). If...
### Zig Version 0.11.0-dev.3949+27a66191c ### Steps to Reproduce and Observed Output If the [`InstallDir` step](https://github.com/ziglang/zig/blob/master/lib/std/Build/Step/InstallDir.zig) fails and `src_dir_path` is an absolute path, it will concatenate `src_builder.build_root` and `src_dir_path` in the...
Extracted from #16358, follow-up from #16051. Problem 1: The value discarded here... https://github.com/ziglang/zig/blob/a7553107345bab99b0f5318e0fd3efae84f56b56/lib/std/Build/Step/Run.zig#L479 ...could have been used to obtain the file contents since the cache system already needed to hash...