#[SOLVED] feature checking in build.zig

1 messages · Page 1 of 1 (latest)

brittle oak
#

Is there builtin functionality to check whether a Zig program compiles in build.zig?

left juniper
#

?

pure aspen
#

you can DIY with checking against the expected return status of a RunStep.

#

What is your use case for this?

atomic sequoia
#

you can see build_runner.zig source i think

brittle oak
#

hmmm, I only need to compile and link a program though, not run it -- that would also break cross-compilation

warm plank
#

I think the idea is you'd run the compiler on the files

#

using b.zig_exe

brittle oak
#

ah

#

thanks