aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-05-27 10:49:14 +0100
committergingerBill <bill@gingerbill.org>2018-05-27 10:49:14 +0100
commit7ee9051a56ca0c04e6b60f53b9dfe47c75596496 (patch)
tree619c13b7d86105fcfda13d315c0c315e7005630a /src/checker.cpp
parenteb11edabe092541144cd3ba18b09bd11fcf7a958 (diff)
IR now builds with the new package system
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 2f4a37511..470cfe185 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -533,6 +533,7 @@ void init_universal_scope(void) {
// NOTE(bill): No need to free these
gbAllocator a = heap_allocator();
universal_scope = create_scope(nullptr, a);
+ universal_scope->is_package = true;
// Types
for (isize i = 0; i < gb_count_of(basic_types); i++) {
@@ -2961,6 +2962,9 @@ void check_parsed_files(Checker *c) {
for_array(j, p->files.entries) {
AstFile *f = p->files.entries[j].value;
create_scope_from_file(c, f);
+ HashKey key = hash_string(f->fullpath);
+ map_set(&c->info.files, key, f);
+
add_curr_ast_file(c, f);
check_collect_entities(c, f->decls);
}