mirror of
https://github.com/allyourcodebase/libunwind.git
synced 2026-11-17 01:30:36 +00:00
Zig build of LLVM libunwind.
- C++ 66.5%
- C 22.8%
- Assembly 9.6%
- Zig 1.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| libunwind | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
libunwind
Zig build of LLVM libunwind.
Usage
- Add
libunwinddependency tobuild.zig.zon:
zig fetch --save git+https://github.com/allyourcodebase/libunwind.git
- Use
libunwinddependency inbuild.zig:
const libunwind_dep = b.dependency("libunwind", .{
.target = target,
.optimize = optimize,
});
const libunwind_art = libunwind_dep.artifact("unwind");
<std.Build.Step.Compile>.linkLibrary(libunwind_art);