0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
Commit graph

38,960 commits

Author SHA1 Message Date
Andrew Kelley
9add673f58 Maker: fix path to configurer.zig 2026-06-29 23:50:19 -07:00
Andrew Kelley
74168de68b Maker: fix lowering of build module on CLI 2026-06-29 23:50:19 -07:00
Andrew Kelley
20e7cc8d88 std.Build.Cache: bump max number of prefixes 2026-06-29 23:50:19 -07:00
Andrew Kelley
ad4887d1b8 Maker: fix arg parsing
init subcommand works now
2026-06-29 23:50:19 -07:00
Andrew Kelley
98854a673e Maker: it's compiling again 2026-06-29 23:50:19 -07:00
Andrew Kelley
27ae3b30ad WIP: also move init subcommand to Maker process 2026-06-29 23:50:18 -07:00
Andrew Kelley
0c978ba957 WIP: migrate build and fetch commands to Maker process 2026-06-29 23:50:18 -07:00
Andrew Kelley
38992fc017 env: remove build_command
it's a regular jit cmd now
2026-06-29 23:50:18 -07:00
Andrew Kelley
a04f90c35b introduce std.Build API for making configure script depend on fs 2026-06-29 23:50:18 -07:00
Andrew Kelley
c616c00db6 Maker: restore "new" as the default build summary in watch mode 2026-06-29 23:50:18 -07:00
Andrew Kelley
6a052277c3 std.Build: document a handful of functions 2026-06-29 23:50:18 -07:00
Nguyen Gia Huy
1d1193aa7b
std.math: Mark signExtend as pub
Introduced in b636906fb6
2026-06-30 02:24:16 +00:00
Andrew Kelley
3109e77474 Revert "CI: skip test-incremental on freebsd"
This reverts commit aeec09ebb6.

The actual tracking issue is #31520 but the problem is originating
inside Clang, making it difficult to selectively disable test coverage
or even troubleshoot the issue.

Furthermore it has been observed, albeit rarely, in any Zig process
execution that involves invoking Clang.

I apologize for the noise.
2026-06-29 16:37:41 -07:00
Andrew Kelley
aeec09ebb6 CI: skip test-incremental on freebsd
due to flaky test failures

tracked by #35986
2026-06-29 14:33:46 -07:00
rpkak
77a4c4bbcf Compilation: remove early 'bin_file = null' which results in a 'defer if (comp.bin_file)' block to not be executed 2026-06-29 19:10:19 +02:00
Pavel Verigo
ba5420896d Enable std tests for wasm backend again + enable field reordering
Additionally remove some skips, closes #30575
2026-06-29 13:22:20 +02:00
Justus Klausecker
4c9d06416c Merge pull request 'Test coverage for overlapping assignments' (#35918) from Fri3dNstuff/zig:overlapping-copy into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35918
Reviewed-by: Justus Klausecker <justusk@noreply.codeberg.org>
2026-06-29 11:31:49 +02:00
Hila Friedman
eab71c7c86 don't use expectEqual 2026-06-29 07:09:19 +03:00
Alex Rønne Petersen
175589fc71 ci: update QEMU to v11.0.2 2026-06-28 20:36:00 +02:00
Ali Cheraghi
902b71eafa Merge pull request 'Type: allow vectors in externs for SPIR-V target' (#35953) from alichraghi/zig:master into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35953
2026-06-28 18:25:43 +02:00
Ali Cheraghi
bae68c8a45 test: unskip passing behavior tests for spirv backend 2026-06-28 18:25:43 +02:00
Ali Cheraghi
ce07ba754c spirv: fix vector pointer access 2026-06-28 18:25:43 +02:00
Ali Cheraghi
56827cf78f Sema: handle @SpirvType(.runtime_array) in elemPtrOneLayerOnly() 2026-06-28 18:25:43 +02:00
Ali Cheraghi
85b0259307 Target: chain spirv versions 2026-06-28 18:25:43 +02:00
Ali Cheraghi
af1046aca4 Type: allow vectors in externs for SPIR-V target
Vectors are well-defined in SPIR-V unlike other targets, and they are essential for almost any shader interface because arrays are incompatible with e.g. Vulkan data formats (`gl_Position`, vertex attributes, color outputs, etc.)
2026-06-28 18:25:43 +02:00
Lukas Lalinsky
e0e145048d Make it possible to implement Io.vtable.netWriteFile
- Fix error set to include the necessary errors
- Wire it into `Io.net.Stream.Writer`
2026-06-28 11:12:34 +02:00
David Senoner
b23a957915 rename struct_field_val -> agg_field_val
Also rename corresponding `airStructFieldVal` functions ->
`airAggFieldVal`
2026-06-28 00:09:59 +02:00
Ryan Liptak
efd6ded716 Merge pull request 'ConfigHeader standalone tests rework' (#35643) from fardragon/zig:fardragon/configheader-tests into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35643
Reviewed-by: Ryan Liptak <squeek502@noreply.codeberg.org>
2026-06-27 22:19:19 +02:00
fardragon
1467054bae In newline detection handle files that contain newlines, but don't end in one 2026-06-27 11:28:21 +02:00
Ryan Mehri
9b5851f001 InternPool: fix incorrect coercion of func_coerced
When trying to coerce a `func_coerced` value to another type, `getCoerced` 
checks the tag but passes the whole `func_coerced` value instead of
the `func_decl` or `func_instance` which eventually leads to a panic
in `extraFuncCoerced`.

Instead, we should pass the uncoerced value to be coerced again.

Closes https://github.com/ziglang/zig/issues/23235
2026-06-27 10:57:03 +02:00
fardragon
f05ceb6aa1 Merge remote-tracking branch 'origin/master' into fardragon/configheader-tests 2026-06-27 10:41:24 +02:00
Andrew Kelley
1581601ffa Merge pull request 'std.hash.crc: full namespace audit' (#35952) from crc-namespace into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35952
2026-06-27 09:32:09 +02:00
Arthur Teixeira
8f7febfa6f Step Runner: set color environment variables before executing test step 2026-06-27 03:19:14 +02:00
pentuppup
e0e91d13cd stop running LLVM codegen when we're not emitting a binary 2026-06-27 01:25:16 +02:00
Andrew Kelley
072534bb2a std.hash.crc: restore auto-generated status 2026-06-26 16:13:19 -07:00
Andrew Kelley
c646f0e182 std.hash.crc: embrace standard names 2026-06-26 16:07:53 -07:00
Andrew Kelley
030e7d3567 std.hash.crc: restore auto-generated status 2026-06-26 16:07:53 -07:00
Andrew Kelley
3a11c86837 std.hash.crc: fix namespace issues
in accordance with the style guide in the langref
2026-06-26 16:07:53 -07:00
Robbie Lyman
32b44497e2 fix(Io.Uring): free size must match alloc size 2026-06-26 23:49:16 +02:00
Andrew Kelley
07782d7a46 Merge pull request 'hash: implement fast crc32c' (#30021) from sinon/zig:fast-crc32c into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30021
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-06-26 23:46:46 +02:00
Andrew Kelley
05cb944709 Merge pull request 'Sema: more fixes' (#35707) from sinon/zig:more-fixes into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35707
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-06-26 23:35:11 +02:00
whatisaphone
b636906fb6 std.math: Add signExtend 2026-06-26 23:30:13 +02:00
David Rubin
c150a66bfe Sema: fix inline for loop breaks 2026-06-26 23:29:08 +02:00
Alex Rønne Petersen
7c832740e0
ci: update Wasmtime to v46.0.1 2026-06-26 16:54:47 +02:00
Alex Rønne Petersen
1999d80d6e Merge pull request 'Elf2: add initial LoongArch support' (#35875) from AstraFall/zig:loongarch/elf2/init into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35875
Reviewed-by: mlugg <mlugg@noreply.codeberg.org>
2026-06-26 02:08:14 +02:00
Andrew Kelley
1526ae4e51 langref: fix nav link to wrong version of 0.12.x 2026-06-25 16:43:43 -07:00
Andrew Kelley
4c5394b367 langref: make section for slice by length 2026-06-25 16:28:27 -07:00
Andrew Kelley
7db2ef6104 zig fmt: add simple tool for measuring complexity
can be used to share how an edit to a source file increases or reduces
complexity with a heuristic that is more insightful than line count
2026-06-26 00:53:28 +02:00
Andrew Kelley
56e313b288 Merge pull request 'Asserts InternPool keys have unique representations' (#35914) from masonremaley/intern-pool-unique-key-reprs into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/35914
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-06-25 20:38:05 +02:00
Andrew Kelley
c4c92b0476 link.Coff: update to latest @bitCast semantics
fixes invisible merge conflict
2026-06-25 10:52:40 -07:00