diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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"); |
