mirror of
https://github.com/allyourcodebase/binutils.git
synced 2026-11-17 01:20:37 +00:00
binutils ported to the zig build system
- Zig 71.1%
- C 28.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| include | ||
| .gitattributes | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| COPYING | ||
| COPYING.LIB | ||
| COPYING3 | ||
| COPYING3.LIB | ||
| find_replace.zig | ||
| README.md | ||
binutils
This is binutils, packaged for Zig.
The following subset of tools and libraries have been ported:
bfd- A library for manipulating binary files in a variety of different formats.libsframe- A library for assembling and disassembling a variety of different assembler languages.opcodes- A library for manipulating the SFRAME debug format.
Installation
First, update your build.zig.zon:
# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/binutils.git
You can then import binutils in your build.zig with:
const binutils_dependency = b.dependency("binutils", .{
.target = target,
.optimize = optimize,
});
your_exe.root_module.linkLibrary(binutils_dependency.artifact("binutils"));