diff --git a/code/demo.odin b/code/demo.odin index 3ac4c9395..be7426d9f 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,8 +1,5 @@ #import "fmt.odin" -#import "game.odin" main :: proc() { fmt.println("Hello") - game.run() - } diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp index c2aa43d3c..ffe6854a7 100644 --- a/src/codegen/codegen.cpp +++ b/src/codegen/codegen.cpp @@ -116,6 +116,10 @@ void ssa_gen_tree(ssaGen *s) { DeclInfo *decl = entry->value; Scope *scope = e->scope; + if (!scope->is_file) { + continue; + } + if (entry_point != NULL) { auto found = map_get(&min_dep_map, hash_pointer(e)); if (found == NULL) { diff --git a/src/common.cpp b/src/common.cpp index b714f1588..9b38d4859 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -196,6 +196,7 @@ template void multi_map_remove_all(Map *h, HashKey key); + template gb_inline void map_init(Map *h, gbAllocator a) { gb_array_init(h->hashes, a);