aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-21 13:38:52 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-03-21 13:38:52 -0400
commit383586fdccff93c25e6065032991c474f9dc3795 (patch)
treeb724921642414e47f699f432df0b9cbf37c804ed
parent80a7472545ba39cae38ee51012cdc47d20d385a9 (diff)
Fix relative import of own header file
-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);
}