From d7152f5c82f516b9013600a70e104c6ae1b01444 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 7 Sep 2025 09:40:33 -0400 Subject: Be more correct about library names and also strip off `tomo-` prefixes/`-tomo` suffixes --- src/compile/headers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compile/headers.c') diff --git a/src/compile/headers.c b/src/compile/headers.c index 6dc69f03..33a979cf 100644 --- a/src/compile/headers.c +++ b/src/compile/headers.c @@ -171,7 +171,7 @@ Text_t compile_statement_type_header(env_t *env, Path_t header_path, ast_t *ast) Path_t build_dir = Path$resolved(Path$parent(header_path), Path$current_dir()); switch (use->what) { case USE_MODULE: { - module_info_t mod = get_module_info(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, -- cgit v1.2.3