Commit Graph
636 Commits
Author SHA1 Message Date
Alex Rønne Petersen d4984092a3 test: add sparc64-openbsd-none to module tests 2026-10-11 15:00:50 +02:00
Alex Rønne Petersen 38c1536b96 test-standalone: respect -Dskip-non-native in cross-compiling tests
closes https://github.com/ziglang/zig/issues/25471
2026-10-10 08:36:08 +02:00
Alex Rønne Petersen 93316d6e61 std.zig.target: move isNative() here from test harness 2026-10-10 08:36:08 +02:00
Kendall Condon aa8c774e0f allow standardOptimizeOption to return null
In order to allow the compiler to default to ReleaseSafe when compiling
for fuzzing, Build.standardOptimizeOption has been changed to return an
optional value.
2026-10-09 10:14:16 +02:00
Alex Rønne Petersen 35accc06ed test: don't claim compatibility for 32-bit RISC-V on 64-bit RISC-V 2026-10-09 09:33:50 +02:00
Alex Rønne Petersen 40a0d70b81 test: don't claim compatibility for 32-bit ARM on AArch64 2026-10-09 09:26:33 +02:00
Alex Rønne Petersen f587d753d1 test: remove max_rss special cases 2026-10-08 13:53:06 +02:00
Alex Rønne Petersen 25a375d358 test: don't compare aarch64/arm feature sets in isNative()
They are distinct families with their own feature bits.
2026-10-08 13:52:53 +02:00
Alex Rønne Petersen 5e96f6e102 test: refactor compatible32bitArch() -> supportedCompatArch()
Also fix some inaccuracies in it.
2026-10-08 13:52:53 +02:00
Alex Rønne Petersen 02488d96d6 test: re-enable stack protector for compiler-rt and libc tests on non-PowerPC
PowerPC is still affected by https://github.com/llvm/llvm-project/issues/195561.

closes https://codeberg.org/ziglang/zig/issues/31702
2026-10-07 00:30:52 +02:00
Alex Rønne Petersen 4bf080551c Revert "llvm: workaround crash on large inline memset"
This reverts commit 84c2d809ec.

closes https://codeberg.org/ziglang/zig/issues/31701
2026-10-07 00:30:52 +02:00
Alex Rønne Petersen 53173d25ab std.Target: update CPU models and features to LLVM 23 2026-10-07 00:30:51 +02:00
Alex Rønne Petersen 5e754304de remove support for wasi-libc
closes https://github.com/ziglang/zig/issues/9342
closes https://github.com/ziglang/zig/issues/15005
closes https://github.com/ziglang/zig/issues/20747
closes https://github.com/ziglang/zig/issues/22570
closes https://codeberg.org/ziglang/zig/issues/30977
2026-10-04 18:23:18 +02:00
Jacob Young 655bee8c75 test: convert debugger tests to new runner 2026-10-02 09:10:10 -04:00
Jacob Young 4dd645fddd Runner: add --libc-runtimes support 2026-09-26 19:08:50 -04:00
Jacob Young 9fe0ebe108 Threaded: implement process spawning for macOS 2026-09-26 19:08:50 -04:00
Jacob Young b6f68ca4ba Runner: implement cbe backend 2026-09-26 19:08:50 -04:00
Jacob Young ec261c5e8d test-incremental: convert tests to new format 2026-09-26 19:08:50 -04:00
Jacob Young 4e4e8902e5 Build: fix UAF of step names 2026-09-26 19:08:50 -04:00
Jacob Young 488c15320b runner: spawn compiler process 2026-09-26 19:08:50 -04:00
Jacob Young 8a6475c4f7 test-new-incremental: combine targets into a single Run step
Since the test protocol Client supports crashing step recovery,
we can just model this as multiple tests in one binary.
2026-09-26 19:08:50 -04:00
Jacob Young 207c883bfb runner: implement skip commands 2026-09-26 19:08:50 -04:00
Jacob Young 11958a306f test: implement new runner 2026-09-26 19:08:50 -04:00
Alex Rønne Petersen 476efc5b70 remove internal and link_once global linkages
These have no clear use case, no coherent definition, and incomplete/broken
compiler and linker support.

If actually needed, they can be reintroduced if someone can present a reasonable
use case along with a plan for how they should be implemented consistently in
all backends and linkers.
2026-09-26 19:12:48 +02:00
Alex Rønne Petersen ba90aae529 test: stop testing thumb-windows
This target is effectively dead. We'll keep it on life support in the compiler
and standard library, but there's no reason to waste CI resources on it at this
stage.
2026-09-23 13:42:28 +02:00
Alex Rønne Petersen 0d20454691 test: enable sparc64-linux-gnu module tests 2026-09-23 13:08:56 +02:00
Andrew Kelley 7eca05812a build.zig: update API usage 2026-09-16 13:12:47 -07:00
Alex Rønne Petersen facb6b9a62 disable cbe module tests on aarch64-openbsd
https://codeberg.org/ziglang/zig/issues/36766
2026-09-05 20:51:04 +02:00
kcbanner ab30a0b9a0 Coff: Incremental progress (#36706)
Making progress on incremental support in the COFF linker:

- Support reloc deletion by replacing them with .ABSOLUTE relocs (actually using the relocs from the free list will come later)
- Fixup setting sizes during incremental updates
- Fix incorrect modifications to the target_relocs linked list, add clarifying docs
- Enable `x86_64-windows-selfhosted` for test-incremental

Closes https://codeberg.org/ziglang/zig/issues/31773

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36706
2026-09-05 07:06:21 +02:00
Jacob Young 980bf80036 Dwarf2: add testing and enable passing tests
- fix some bit-rotted documentation
- fix some non-determinism that was causing these tests to be flaky
- also update padding on moved/resized events
- make `unit_padding` a header node
- refactor out `ifPos`
2026-09-03 13:00:54 -04:00
Jacob Young 566b6a6ec0 Dwarf2: finish type debug info 2026-09-03 12:59:38 -04:00
Alex Rønne Petersen 6534993573 test-link: respect various skip options properly
Also use the smarter isNative() function.
2026-08-30 09:00:59 +02:00
Alex Rønne Petersen ceca6cca16 test-incremental: respect -Dskip-non-native and other similar options 2026-08-30 08:46:46 +02:00
Alex Rønne Petersen a583d26e70 compiler: disable self-hosted backend for x86_64-macos by default
https://codeberg.org/ziglang/zig/issues/35267

This was already the case before b66fe565db since
isBSD() includes isDarwin() - a great example of why that function is bad,
because it was not intended for Darwin platforms to be included in that check.

Anyway, we now *do* want to disable the self-hosted backend for this target due
to the aforementioned linker bug, but let's actually be intentional about it.
2026-08-25 13:53:20 +02:00
Alex Rønne Petersen 87169df9c1 Merge pull request 'some miscellaneous std.Target stuff' (#36614) from alexrp/zig:std-target-stuff into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36614
2026-08-24 00:47:19 +02:00
Alex Rønne Petersen b66fe565db std.Target: deprecate Os.Tag.isBSD()
These operating systems share a lineage but it almost never makes sense to
consider them together. Current-day Darwin being included is also likely to be a
surprise to many.
2026-08-23 20:05:28 +02:00
K4 2c93c6e91b std.lang.OptimizeMode -> std.lang.Optimize migration progress 2026-08-23 14:30:48 +02:00
Pavel Verigo 6716bf52e7 Merge pull request 'wasm: enable incremental tests for selfhosted' (#36534) from pavelverigo/zig:wasm-incr-tests-enable into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36534
2026-08-17 11:08:23 +02:00
Pavel Verigo 23541774d6 wasm: enable incremental tests for selfhosted
Closes #31810
2026-08-16 19:01:56 +02:00
Matthew Lugg 77f7d01a69 tests: run some module tests with Elf2
It cannot yet handle the behavior tests or compiler_rt tests due to them
using `@export` with `.internal`, but we can at least pass the standard
library and libc tests on x86_64.
2026-08-16 10:38:52 +01:00
Alex Rønne Petersen ad120ff12f test: refine the list of targets that get run in stack/error trace tests
Stack trace tests now run for most of the targets that we build module tests
for. However, we omit explicit targets that have no meaningful way of executing
on a non-native platform - whether through an emulator or 32-bit compatibility
layer. (There's no point building them if we cannot run them.) We also omit soft
float targets because there's nothing about float ABI that would affect stack
tracing. Finally, we currently omit Thumb targets because it turns out the stack
trace code does not work well at all on Thumb, and fixing this will likely
require us to implement ARM EHABI unwinding (#30931).

Error trace tests run on an even further reduced set of targets because we don't
care if libc is linked for those. Thumb is enabled here, though, since error
tracing seems unaffected by the aforementioned issue.

Also make these tests respect the various build options.

As far as CI goes, x86_64-linux will run the full set of tests (modulo
-Dtest-extra-targets) while all other machines only run native-compatible tests.
2026-08-10 22:19:02 +02:00
Andrew Kelley 8b2949e372 simplify stack trace and error trace tests
by explicitly listing out the combinations of parameters we would like
to check.
2026-08-07 13:28:16 -07:00
Andrew Kelley 0f1c478db3 tests: remove "compiler has package manager" logic
This is simplified now that package fetching is moved to Maker
executable.
2026-08-07 12:32:58 -07:00
Andrew Kelley 127e2d8088 ability to forward third party integration arguments to child processes
This provides a way to forward, e.g. the `-fqemu` argument from
`zig build` to a child process during Maker execution without providing
the information to the configuration logic.
2026-08-07 11:19:55 -07:00
Andrew Kelley 5228c8902f tests: use skip_foreign_checks rather than dead branch
Configuration logic, in general, should not try to guess whether an
executable will be able to be run on the host. This can only be
determined by trying to, and encountering failure, for example because
binfmt_misc might be installed. OS might handle illegal instruction
traps and emulate CPU features not available, etc.

skip_foreign_checks is the mechanism intended to handle this use case.
2026-08-07 11:19:55 -07:00
Alex Rønne Petersen 79df5f015b Merge pull request 'zig cc: fix CPU model and features not being passed to the assembler' (#36383) from alexrp/zig:cc-asm-cpu-info into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36383
2026-08-05 10:51:03 +02:00
Krzysztof Wolicki ab4028d579 Update usages of most deprecated APIs
In particular renames of `std.mem.indexOf` family to `std.mem.find`
and generic unmanaged containers
2026-08-05 03:40:30 +02:00
Alex Rønne Petersen 142bd772e1 test: add loongarch32-linux-gnu[sf] to module test matrix 2026-08-04 21:13:13 +02:00
Pavel Verigo 6db520a4cd stage2-wasm: pass cabi tests
- make ubsan to be linkable by linker
- currently ignore bool vectors tests for `.stage2_wasm`, let defer handling it properly after supporting simd128 in backend (mainly tiny fixes + enabling it for matrix)
- I needed to refactor `wasm/abi.zig`, still bad
2026-08-02 03:28:09 +02:00
Pavel Verigo e045b77d99 stage2-wasm: linker emit obj + fixes/hacks 2026-07-28 22:42:11 +02:00