Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify output directory and binary name to zig build-exe

Tags:

zig

I struggle to find any equivalent of C compiler's cc <srcs> -o <path/and/binary/name> in documentation of zig build-exe. Only thing that I found is option --name, but It cannot specify path, only name of unit.
Is there any way to do so in command, or using build.zig file is the only way?

like image 733
Veljko Miletic Avatar asked Dec 07 '25 08:12

Veljko Miletic


1 Answers

-femit-bin=path/to/output_file

Similar options are available for emitting other things

like image 168
pfg Avatar answered Dec 10 '25 14:12

pfg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!