I have a lazy dependency in my zon file and a build.zig with two artifacts, one of which needs the dependency, and two install-* steps to go with it. Since the build.zig always describes both artifacts, it currently always invokes lazyDependency, causing the dep to be fetched. How do I structure my build script, such that the dep is only fetched if the artifact requiring it is actually built?
#Using lazy dependencies that are only required by a certain step
1 messages · Page 1 of 1 (latest)
Can't be done yet, there's an open issue about it: https://github.com/ziglang/zig/issues/21525