aboutsummaryrefslogtreecommitdiff
path: root/src/compile/files.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-21 15:54:55 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-21 15:54:55 -0500
commit434ffd71c9a7eebd46ec0cba1d97b0827b874901 (patch)
treeeb5b02823b7cba714136a0c6b777aca36d147c3a /src/compile/files.c
parent63e6d52f1e1ad9ba3e5dd453115abfc2f8418fc6 (diff)
Don't embed tomo version/path information at compile time, instead infer
it at runtime
Diffstat (limited to 'src/compile/files.c')
-rw-r--r--src/compile/files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile/files.c b/src/compile/files.c
index 27c2e041..555f848c 100644
--- a/src/compile/files.c
+++ b/src/compile/files.c
@@ -194,8 +194,8 @@ Text_t compile_file(env_t *env, ast_t *ast) {
const char *name = file_base_name(ast->file->filename);
return Texts(env->do_source_mapping ? Texts("#line 1 ", quoted_str(ast->file->filename), "\n") : EMPTY_TEXT,
- "#define __SOURCE_FILE__ ", quoted_str(ast->file->filename), "\n",
- "#include <tomo@" TOMO_VERSION "/tomo.h>\n"
+ "#define __SOURCE_FILE__ ", quoted_str(ast->file->filename), "\n", "#include <tomo@", TOMO_VERSION,
+ "/tomo.h>\n"
"#include \"",
name, ".tm.h\"\n\n", includes, env->code->local_typedefs, "\n", env->code->lambdas, "\n",
env->code->staticdefs, "\n", top_level_code, "public void ",