#Is there a way to disable llvm (`-fno-llvm -fno-lld`) with zig build command flags?

1 messages · Page 1 of 1 (latest)

honest lantern
#

title basically.

I know zig build-exe and zigbuild-lib suppord the -fno-llvm -fno-lld flags
and you can specify .use_llvm = false and .use_llvm = false in build.zig
but is there way way to do this on the cli with the zig build command?

fringe zealot
#

see b.option

#

its how the all the -Dfoo=bar flags work

honest lantern
#

I wanted to do this on someone else's project on ci, so i cant modify the build.zig file