From 7ee9051a56ca0c04e6b60f53b9dfe47c75596496 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 27 May 2018 10:49:14 +0100 Subject: IR now builds with the new package system --- src/checker.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/checker.cpp') 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); } -- cgit v1.2.3