aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tomo.c b/tomo.c
index b60ea8ff..dfe5afec 100644
--- a/tomo.c
+++ b/tomo.c
@@ -214,7 +214,7 @@ int transpile(const char *filename, bool force_retranspile)
CORD_put(module.header, out);
pclose(out);
out = popen(heap_strf("%s | bat -P --file-name=%s.c", autofmt, f->filename), "w");
- CORD_put(CORD_all("#include \"", f->filename, "\"\n\n", module.c_file), out);
+ CORD_put(CORD_all("#include \"", module.module_name, ".tm.h\"\n\n", module.c_file), out);
pclose(out);
}