zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
This PR adds the ability to specify a custom test runner via a new `--test-runner` CLI option, or the `std.build.Builder.test_runner_path` field. There are a few aspects I'm uncertain about: -...
### Zig Version 0.11.0-dev.22+57dbeb90a ### Steps to Reproduce and Observed Behavior ```c #include int main() { printf("hello world\n"); return 0; } zig cc -target target-here hello.c ``` Or to take...
``` [nix-shell:~/dev/zig/build]$ ./zig build-exe --c-source hello.c -target riscv64-linux-gnu -lc /home/andy/dev/zig/lib/libc/glibc/sysdeps/riscv/start.S:37:10: fatal error: 'entry.h' file not found #include ^~~~~~~~~ 1 error generated. The following command failed: /home/andy/dev/zig/build/zig cc -MD -MV -MF...
I wrote this after #12448 got merged but decided to wait for 0.10.0 to be released before pulling it. Now I've decided to pull it a bit earlier since 0.10.0...
Currently we have this situation: * stage1: Inline assembly is a comptime-known string that can be built with expressions such as `++`. * stage2: Inline assembly must be string literals....
### Zig Version 0.10.0-dev.760+1a84c23d6 ### Steps to Reproduce Save the following to a file with an extension which is not generally used for C++, such as `test.foo` or `test.hpp`: ```cxx...
### Zig Version 0.11.0-dev.11+0d192ee9e ### Steps to Reproduce and Observed Behavior I noticed this as part of investigating the build issues on MSVC https://github.com/ziglang/zig/issues/12703#issuecomment-1299605706 When there is a linker error,...
### Zig Version 0.9.0-dev.1920+de81c504b ### Steps to Reproduce When trying to cross compile the Wasmer C API to different systems, the linker outputs a unexpected error. ```shell git clone [email protected]:wasmerio/wasmer.git...
This program complains that `amain` depends on itself. Although this program is an infinite loop that constantly leaks memory, my understanding is that this is not an illegal zig program....
### Zig Version 0.10.0-dev.4060+61aaef0b0 ### Steps to Reproduce I'm using macOS. In any project, such as the one generated by `zig init-lib`, add `lib.emit_h = true`, then do `zig build`...