Closed jhy closed 4 days ago
Hi Jonathan, this example should probably be using b.path("src/main.zig")
. LazyPath changed somewhat recently; this code unfortunately isn't covered by testing yet so it was missed. I'll have a look at this later.
Great, yes .root_source_file = b.path("src/main.zig"),
works.
Thanks for your work on the guide, very much appreciated!
Hi there,
I can't get the Hello Zig Build example at https://zig.guide/build-system/zig-build to work. With a copy & paste of
build.zig
andsrc/main.zig
:From reading the
Build.zig
, I found this works:But the docs say:
So I'm not sure what the idiomatic zig example should be.