#Root package

1 messages · Page 1 of 1 (latest)

tall cypress
#

What is the root package? As in what does @import("root") really import?

sly locust
#

The file that is passed to the compiler

#

If you do zig build-exe foo.zig, @import("root") will import foo.zig

#

If you do exe = b.addExecutable("bar", "bar.zig"), @import("root") will import bar.zig

tall cypress
#

oh, I thought it maybe imported "build.zig"

sly locust
#

Nah build.zig is just a script that spawns the compiler :)