From d578c82c7fb3a2ac9557926ae6690b4f13534c22 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 6 Apr 2026 17:15:29 -0300 Subject: a lot of refactoring ig --- build.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 6f7ad07..bdc140e 100644 --- a/build.zig +++ b/build.zig @@ -93,6 +93,14 @@ pub fn build(b: *std.Build) !void { const loop_step = b.step("loop", "Interative Programming Loop! you should run it with watch: i.e. zig build loop --watch"); loop_step.dependOn(&runner.step); + + // objdump comparison: per-symbol side-by-side elfo vs objdump + const compare_runner = b.addRunArtifact(elfo); + compare_runner.addArtifactArg(c_test_exe); + compare_runner.addArg("--compare"); + + const objdump_step = b.step("objdump", "Compare elfo output against objdump per symbol"); + objdump_step.dependOn(&compare_runner.step); // --- const zls_check = b.step("check", "Check if the program compiles"); -- cgit v1.3