From 5118eaf98126a9e77c4fef62f8ce8eae73678900 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 9 Sep 2025 13:33:56 -0400 Subject: Add `source_mapping` flag to the compiler config to force recompilation when that flag changes (also add tomo version). --- src/tomo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tomo.c b/src/tomo.c index a64426c2..7ec8a854 100644 --- a/src/tomo.c +++ b/src/tomo.c @@ -275,7 +275,8 @@ int main(int argc, char *argv[]) { if (show_codegen.length > 0 && Text$equal_values(show_codegen, Text("pretty"))) show_codegen = Text("{ sed '/^#line/d;/^$/d' | clang-format | bat -l c -P; }"); - config_summary = Text$from_str(String(cc, " ", cflags, " -O", optimization)); + config_summary = Texts("TOMO_VERSION=", TOMO_VERSION, "\n", "COMPILER=", cc, " ", cflags, " -O", optimization, "\n", + "SOURCE_MAPPING=", source_mapping ? Text("yes") : Text("no"), "\n"); Text_t owner = Path$owner(Path$from_str(TOMO_PATH), true); Text_t user = Text$from_str(getenv("USER")); -- cgit v1.2.3