aboutsummaryrefslogtreecommitdiff
path: root/src/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-28 16:04:31 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-28 16:04:31 -0400
commita49610246e12d8e2947f8ce2bc981acbbb88a901 (patch)
tree5517334d3a0d943e82def8225e930fa9c28fa393 /src/tomo.c
parent3edd47f7830f7176ae97e440490e20f6132706e8 (diff)
Fix potential issue causing install to fail
Diffstat (limited to 'src/tomo.c')
-rw-r--r--src/tomo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tomo.c b/src/tomo.c
index 816fd78a..8562ebaa 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -688,7 +688,8 @@ void build_file_dependency_graph(Path_t path, Table_t *to_compile, Table_t *to_l
case USE_MODULE: {
Text_t lib = Texts(Text("'" TOMO_HOME "/installed/"),
Text$from_str(use->path), Text("/lib"), Text$from_str(use->path), Text(SHARED_SUFFIX "'"));
- Table$set(to_link, &lib, ((Bool_t[1]){1}), Table$info(&Text$info, &Bool$info));
+ bool t = true;
+ Table$set(to_link, &lib, &t, Table$info(&Text$info, &Bool$info));
List_t children = Path$glob(Path$from_str(String(TOMO_HOME"/installed/", use->path, "/*.tm")));
for (int64_t i = 0; i < children.length; i++) {