aboutsummaryrefslogtreecommitdiff
path: root/src/compile/statements.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/statements.c
parent63e6d52f1e1ad9ba3e5dd453115abfc2f8418fc6 (diff)
Don't embed tomo version/path information at compile time, instead infer
it at runtime
Diffstat (limited to 'src/compile/statements.c')
-rw-r--r--src/compile/statements.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/statements.c b/src/compile/statements.c
index 01fb1a0b..13dcc064 100644
--- a/src/compile/statements.c
+++ b/src/compile/statements.c
@@ -197,7 +197,7 @@ static Text_t _compile_statement(env_t *env, ast_t *ast) {
module_info_t mod = get_used_module_info(ast);
glob_t tm_files;
const char *folder = mod.version ? String(mod.name, "@", mod.version) : mod.name;
- if (glob(String(TOMO_PATH, "/lib/tomo@" TOMO_VERSION "/", folder, "/[!._0-9]*.tm"), GLOB_TILDE, NULL,
+ if (glob(String(TOMO_PATH, "/lib/tomo@", TOMO_VERSION, "/", folder, "/[!._0-9]*.tm"), GLOB_TILDE, NULL,
&tm_files)
!= 0) {
if (!try_install_module(mod, true)) code_err(ast, "Could not find library");