Build.zig can't produce LLVM bytecode without outputting the full binary #20699
Labels
bug
Observed behavior contradicts documented or intended behavior
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
Create a hello world file at "hello.zig"
Next to it create the following "build.zig" file.
Then
zig build
fails with the following error:Expected Behavior
Zig should accept to compile the program and only output llvm bytecode, not the full binary.
Note this is still present on zig_0.14.0-dev.363, and it was also present a few months ago when I wrote this https://gist.github.com/gwenzek/7e77e592320b9b1971b95fb0d6429424 (totally forgot about it in the meantime).
This issue is not only about Llvm bytecode, it's also reproducible with other outputs kind such as
-femit-asm
Note that directly calling
zig build-obj -fno-emit-bin -femit-llvm-bytecode
works fine it's really an issue with the build system.The text was updated successfully, but these errors were encountered: