aboutsummaryrefslogtreecommitdiff
path: root/src/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-15 16:52:55 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-15 16:52:55 -0400
commit0e0808bce2160eb1382a2cf9499d943d4e51bdf4 (patch)
treecbfe0cf941048121c07396bc5375aa6dc5eb59c8 /src/compile.c
parentd6651e0d8f5bbc7dba12003ccda023c97273ce86 (diff)
Add configuration script to choose install paths and default C compiler
and bake those into the compiled Tomo code
Diffstat (limited to 'src/compile.c')
-rw-r--r--src/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile.c b/src/compile.c
index 052fe309..766da09d 100644
--- a/src/compile.c
+++ b/src/compile.c
@@ -1888,7 +1888,7 @@ static CORD _compile_statement(env_t *env, ast_t *ast)
return with_source_info(env, ast, CORD_all("_$", name, "$$initialize();\n"));
} else if (use->what == USE_MODULE) {
glob_t tm_files;
- if (glob(String("~/.local/share/tomo/installed/", use->path, "/[!._0-9]*.tm"), GLOB_TILDE, NULL, &tm_files) != 0)
+ if (glob(String(TOMO_HOME"/installed/", use->path, "/[!._0-9]*.tm"), GLOB_TILDE, NULL, &tm_files) != 0)
code_err(ast, "Could not find library");
CORD initialization = CORD_EMPTY;