Closed ritalin closed 2 months ago
Sorry, but I don't understand what you're suggesting/asking 😓
I guess he's asking for feature when you can access module from build.zig
, like this: https://zig.news/liyu1981/how-to-use-your-fav-pkg-in-buildzig-3ni8
I can't see a valid reason for this though
Aah I see. Yea, I don't see a valid reason to do this either. zig build
handles arguments for build.zig
so using zig-clap
in build.zig
wouldn't be wise.
OK, I see.
I'd like to use this module into
build.zig
. Usingconst clap = @import("clap")
intobuild.zig
in my project led to loadbuild.zig
ofzig-clap
. Because a loaded file id not a module but a builder, It will fail to build.Do you have a plan for using into build.zig?
IMO, it will resolve in
build.zig
following: