commit e12c7d88b28200bc64a538cd4812bfe58a6b6b78 (tree)
parent 4ea7685a5bf2abc504571939984b9eda7441ef5d
Author: emekoi <emekankurumeh@outlook.com>
Date: Tue, 11 Jun 2019 16:06:24 -0500
made root package available to itself
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/codegen.cpp b/src/codegen.cpp
@@ -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);