#Check run/test step

1 messages · Page 1 of 1 (latest)

silver ferry
#

How can I check if run or test was given to the zig build command?
I have an b.option in my build.zig file that takes a path to a file, and depending on which step (run/test) or both are active I want to take action with the filepath.

outer kindle
#

Afaik you cant do it any other way

silver ferry
#

So I can add to the step even if it was not activated?

#

*not unnecessary work during the build process?

outer kindle