Ability to control what Zig emits in build.zig #6871
Labels
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
docs
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
As far as I understand, right now you can't specify what Zig should emit in
build.zig
. I'd like to have the equivalentbuild.zig
config for the command:zig build-obj src/main.zig -femit-llvm-ir -fno-emit-bin
Here's what I have in my
build.zig
After looking in
lib/std/build.zig
, I think adding something like:Then in
make
everything already seems setup to add the args!If this is something you'd like, I can submit a PR!
The text was updated successfully, but these errors were encountered: