#Can zig build work like a Makefile and install the compiled binaries system-wide?

1 messages · Page 1 of 1 (latest)

topaz birch
#

Is it ok to run sudo zig build?

muted burrow
topaz birch
# muted burrow Don't see why not And I'd imagine doing --prefix /usr would work too
muted burrow
#

--prefix tells the build system where Install steps should install files to
By default it goes into zig-out

#

Which isn't system wide obviously