aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-05 16:22:27 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-05 16:22:27 -0400
commit976b4eec075ea76387bb3b424fc0d89b8974ae10 (patch)
treed814d14409b44a9e8796256d3393ce26a0488f1d
parenta1f81258c164e772307043cf1be65c1343319d58 (diff)
Show codegen even if it wasn't regenerated
-rw-r--r--src/tomo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tomo.c b/src/tomo.c
index 4547b66b..1691bdfb 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -587,6 +587,8 @@ void compile_files(env_t *env, List_t to_compile, List_t *object_files, List_t *
entry->staleness.o = true;
} else {
if (verbose) whisper("Unchanged: ", build_file(entry->filename, ".h"));
+ if (show_codegen.length > 0)
+ xsystem(show_codegen, " <", build_file(entry->filename, ".h"));
}
}
@@ -607,6 +609,8 @@ void compile_files(env_t *env, List_t to_compile, List_t *object_files, List_t *
if (!clean_build && !entry->staleness.c && !entry->staleness.h && !entry->staleness.o
&& !is_config_outdated(entry->filename)) {
if (verbose) whisper("Unchanged: ", build_file(entry->filename, ".c"));
+ if (show_codegen.length > 0)
+ xsystem(show_codegen, " <", build_file(entry->filename, ".c"));
if (verbose) whisper("Unchanged: ", build_file(entry->filename, ".o"));
continue;
}