made root package available to itself

This commit is contained in:
emekoi 2019-06-11 16:06:24 -05:00
parent 4ea7685a5b
commit e12c7d88b2

View File

@ -180,6 +180,8 @@ CodeGen *codegen_create(Buf *main_pkg_path, Buf *root_src_path, const ZigTarget
g->root_package = new_package(".", "", "");
}
g->root_package->package_table.put(buf_create_from_str("@root"), g->root_package);
g->zig_std_special_dir = buf_alloc();
os_path_join(g->zig_std_dir, buf_sprintf("special"), g->zig_std_special_dir);