diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 21:18:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 21:18:42 -0400 |
| commit | 6b5a9d65e3088f04d3bbdf0a8de8fb81d8453ed9 (patch) | |
| tree | 398584865701caf99b409b77fbaf5029ee27f615 /parse.c | |
| parent | 3c19f6387f537e464fa783b37f098d75b77a0c83 (diff) | |
Overhaul of how libraries are installed
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
