From 6b5a9d65e3088f04d3bbdf0a8de8fb81d8453ed9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 15 Sep 2024 21:18:42 -0400 Subject: Overhaul of how libraries are installed --- parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 523c54f7..6f1d4b10 100644 --- a/parse.c +++ b/parse.c @@ -2368,6 +2368,10 @@ PARSER(parse_linker) { } ast_t *parse_file(const char *path, jmp_buf *on_err) { + const char *resolved = resolve_path(path, ".", "."); + if (!resolved) + errx(1, "Could not resolve path: %s", path); + path = resolved; // NOTE: this cache leaks a bounded amount of memory. The cache will never // hold more than PARSE_CACHE_SIZE entries (see below), but each entry's // AST holds onto a reference to the file it came from, so they could -- cgit v1.2.3