aboutsummaryrefslogtreecommitdiff
path: root/test/standalone/coff_dwarf
AgeCommit message (Collapse)Author
5 daysupdate remaining calls to std.Io.Threaded.initAndrew Kelley
2025-11-23test: disable `coff_dwarf` on FreeBSDAlex Rønne Petersen
https://github.com/ziglang/zig/issues/25471 This is not the only test that aborts like this, nor does it happen only on FreeBSD, but it happens to be disproportionally disruptive on FreeBSD in particular.
2025-10-29update some tests and tools for new Io APIsAndrew Kelley
2025-09-30std.debug.SelfInfo: remove shared logicmlugg
There were only a few dozen lines of common logic, and they frankly introduced more complexity than they eliminated. Instead, let's accept that the implementations of `SelfInfo` are all pretty different and want to track different state. This probably fixes some synchronization and memory bugs by simplifying a bunch of stuff. It also improves the DWARF unwind cache, making it around twice as fast in a debug build with the self-hosted x86_64 backend, because we no longer have to redundantly go through the hashmap lookup logic to find the module. Unwinding on Windows will also see a slight performance boost from this change, because `RtlVirtualUnwind` does not need to know the module whatsoever, so the old `SelfInfo` implementation was doing redundant work. Lastly, this makes it even easier to implement `SelfInfo` on freestanding targets; there is no longer a need to emulate a real module system, since the user controls the whole implementation! There are various other small refactors here in the `SelfInfo` implementations as well as in the DWARF unwinding logic. This change turned out to make a lot of stuff simpler!
2025-09-30test-standalone: update for std.debug changesmlugg
2025-07-01test: Only run coff_dwarf test on aarch64, x86, x86_64Alex Rønne Petersen
This will just fail if run on architectures like riscv64.
2025-01-22std.Build: add `addLibrary` function (#22554)BratishkaErik
Acts as a replacement for `addSharedLibrary` and `addStaticLibrary`, but linking mode can be changed more easily in build.zig, for example: In library: ```zig const linkage = b.option(std.builtin.LinkMode, "linkage", "Link mode for a foo_bar library") orelse .static; // or other default const lib = b.addLibrary(.{ .linkage = linkage, .name = "foo_bar", .root_module = mod, }); ``` In consumer: ```zig const dep_foo_bar = b.dependency("foo_bar", .{ .target = target, .optimize = optimize, .linkage = .static // or dynamic }); mod.linkLibrary(dep_foor_bar.artifact("foo_bar")); ``` It also matches nicely with `linkLibrary` name. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
2024-12-18test-standalone: migrate from deprecated std.Build APIsmlugg
2024-10-21coff: fix incorrect default `image_base` values and re-enable shared library ↵kcbanner
tests on Windows This was the cause of aarch64-windows shared libraries causing "bad image" errors during load-time linking. I also re-enabled the tests that were surfacing this bug.
2024-09-12Replace deprecated default initializations with decl literalsLinus Groh
2024-08-07update coff_dwarf standalone test to new APIAndrew Kelley
and make it still test compilation on non-Windows
2024-08-02fix compilation on powerpc GNU systemsAndrew Kelley
...which have a ucontext_t but not a PC register. The current stack unwinding implementation does not yet support this architecture. Also fix name of `std.debug.SelfInfo.openSelf` to remove redundancy. Also removed this hook into root providing an "openSelfDebugInfo" function. Sorry, this debugging code is not of sufficient quality to offer a plugin API right now.
2024-05-05Build: cleanupJacob Young
* `doc/langref` formatting * upgrade `.{ .path = "..." }` to `b.path("...")` * avoid using arguments named `self` * make `Build.Step.Id` usage more consistent * add `Build.pathResolve` * use `pathJoin` and `pathResolve` everywhere * make sure `Build.LazyPath.getPath2` returns an absolute path
2024-01-01disable standalone coff_dwarf test on aarch64-windowsAndrew Kelley
See tracking issue #18427
2023-07-30Rebase + two fixes.Felix "xq" Queißner
2023-07-30Introduces Compile.forceBuild() and Compile.forceEmit(…)Felix "xq" Queißner
2023-07-20test: add a test for dwarf embedded in coffkcbanner