You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did some digging and -emit-llvm should fix that. I naturally tried emit_llvm_ir and emit_llvm_br in std.Build.CompileStep on one made from std.Build.addAssembly(). This however, does not solve this error. I noticed emit_llvm_ir and emit_llvm_br did not add the argument so I ran the command that was outputted with zig build --verbose-cc and it worked just fine. So we've got 2 problems here:
Currently, std.Build does not have a way to pass emit-llvm to zig clang
zig clang's -emit-llvm argument does not function the same as clang's -emit-llvm
Expected Behavior
What we should have is:
std.Build.CompileStep should pass -emit-llvm, probably with a new EmitOption called emit_llvm, which is passed to zig clang
zig clang -emit-llvm should be functioning the same as clang -emit-llvm which would fix the assembly error
The text was updated successfully, but these errors were encountered:
Zig Version
0.11.0-dev.1969+d525ecb52
Steps to Reproduce and Observed Behavior
Try compiling
src/x86/unix64.S
withzig clang
inlibffi
, I have it integrated into my project and I discovered this error:I did some digging and
-emit-llvm
should fix that. I naturally triedemit_llvm_ir
andemit_llvm_br
instd.Build.CompileStep
on one made fromstd.Build.addAssembly()
. This however, does not solve this error. I noticedemit_llvm_ir
andemit_llvm_br
did not add the argument so I ran the command that was outputted withzig build --verbose-cc
and it worked just fine. So we've got 2 problems here:std.Build
does not have a way to passemit-llvm
tozig clang
zig clang
's-emit-llvm
argument does not function the same asclang
's-emit-llvm
Expected Behavior
What we should have is:
std.Build.CompileStep
should pass-emit-llvm
, probably with a newEmitOption
calledemit_llvm
, which is passed tozig clang
zig clang -emit-llvm
should be functioning the same asclang -emit-llvm
which would fix the assembly errorThe text was updated successfully, but these errors were encountered: