aboutsummaryrefslogtreecommitdiff
path: root/src/typecheck.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/typecheck.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/typecheck.c')
-rw-r--r--src/typecheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/typecheck.c b/src/typecheck.c
index 58b74739..83b715cf 100644
--- a/src/typecheck.c
+++ b/src/typecheck.c
@@ -181,7 +181,7 @@ static env_t *load_module(env_t *env, ast_t *module_ast)
}
case 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(module_ast, "Could not find library");
env_t *module_env = fresh_scope(env);