summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 8 insertions, 0 deletions
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");