zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
On macOS, libSystem contains compiler-rt already, which has many identical symbols to Zig's compiler-rt: https://github.com/ziglang/zig/blob/33cf6ef621114daad63d14067b6ff374e664d410/lib/libc/darwin/libSystem.12.tbd#L400-L421 As an optimization, our compiler-rt can check if generating a given symbol would be redundant,...
### Zig Version 0.15.0-dev.386+2e35fdd03 ### Steps to Reproduce and Observed Behavior Run this program with `zig test` ``` zig // this doesn't set the sentinel fn func1(yes: bool) [2:'!']u8 {...
### Zig Version 0.14.0 (Built on M1 mac running Sonoma 14.2.1) ### Steps to Reproduce and Observed Behavior While trying to build a image for a microcontroller, with a custom...
- activates when -DZIG_SHARED_LLVM=ON - activates when llvm_config is used and --shared-mode is shared - otherwise vendored libc++ is used closes #23189
Closes #23545
Closes https://github.com/ziglang/zig/issues/23739
I'm trying to build an application that uses GLFW3 on Windows. I've downloaded the "Windows pre-compiled binaries" from https://www.glfw.org/download.html and extracted the contents of the zip to a folder in...
Currently the only function that handles sentinel terminated slices properly is free. All other uses of mem.sliceAsBytes() in the allocator interface lack proper handling of a possible sentinel. This commit...
Extracted from #514. This is needed for OpenBSD to become a tier 1 target. The example set by glibc can be followed. See also this wiki page: https://github.com/ziglang/zig/wiki/Updating-libc
Currently, it is assumed that all hardware uses `u8` as the address unit, which is not universally true. However, this assumption is built into the language or to things fairly...