#build step that prints a string?

1 messages · Page 1 of 1 (latest)

slate pike
#

is there a build step that prints a message out? I'm using addWriteFile pointed at /dev/stdout but wondering if there is something more robust.

delicate breach
#

custom step with custom make function that writes to standard out i guess. i feel like this is a bad idea to have
but it is possible. look at std.Build.Step.init

clever lily
#

a run step should also work as an alternative to a custom step

slate pike
#

you mean make an executable that prints the statement out and have the run step execute that program?

#

or is there a step that executes a zig function directly?

clever lily
#

a custom step executes a zig function directly, a run step compiles a zig file and runs it