I wanna emit the binary either in .
or ../
relative to build.zig. How can I do that?
zig build -p .
or zig build -p ..
Is it possible to integrate this in the build script?
I just made a symlink from the given directory to the zig-out. It fully fulfillds my needs lol
I want to note for additional information about why you can’t put this in the build script/build.zig. Zig is opinionated that install paths should be something the user provides, rather than the instalation tool forcing on the user. (i.e, when installing something on the system the user should pick where it gets installed). This is why you won’t see built in mechanisms for hardcoding an install path in the build.zig.
2 Likes