fix: removed root module name

This commit is contained in:
Sven Vogel 2024-10-08 12:03:01 +02:00
parent 3092173d72
commit af83cb4f4e
1 changed files with 2 additions and 2 deletions

View File

@ -240,10 +240,10 @@ static int compile_module_with_dependencies(ModuleFileStack* unit,
if (NULL == module_ref) {
module_ref = mem_alloc(MemoryNamespaceOpt, sizeof(ModuleRef));
module_ref->module_path = mem_new_g_array(MemoryNamespaceOpt, sizeof(char*));
} else {
module_ref_push(module_ref, module_from_basename(file->path));
}
module_ref_push(module_ref, module_from_basename(file->path));
GHashTable* imports =
mem_new_g_hash_table(MemoryNamespaceAst, g_str_hash, g_str_equal);