aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-02-07 17:15:59 +0000
committergingerBill <bill@gingerbill.org>2024-02-07 17:15:59 +0000
commita08250ac5b88068cf928552e2628d1e3c7ade95c (patch)
treee8dddf143a8c240401402e76719b3a4ed9ba5f05 /src/checker.cpp
parentabaa906f34dbf81f5abe275b34fc8ef7a0bf9b3d (diff)
Improve error handling for missing library collection provided by the compiler
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index e4a680a20..457ee6146 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -774,7 +774,7 @@ gb_internal void add_type_info_dependency(CheckerInfo *info, DeclInfo *d, Type *
gb_internal AstPackage *get_runtime_package(CheckerInfo *info) {
String name = str_lit("runtime");
gbAllocator a = heap_allocator();
- String path = get_fullpath_base_collection(a, name);
+ String path = get_fullpath_base_collection(a, name, nullptr);
defer (gb_free(a, path.text));
auto found = string_map_get(&info->packages, path);
if (found == nullptr) {
@@ -795,7 +795,7 @@ gb_internal AstPackage *get_core_package(CheckerInfo *info, String name) {
}
gbAllocator a = heap_allocator();
- String path = get_fullpath_core_collection(a, name);
+ String path = get_fullpath_core_collection(a, name, nullptr);
defer (gb_free(a, path.text));
auto found = string_map_get(&info->packages, path);
if (found == nullptr) {