Open mattnite opened 3 years ago
I'm sorry for the lack of info on this one, I gave up trying to build LLVM12 locally and I've just been waiting for it to be released on arch before working on the compiler again, so I don't know how to debug this.
lld is getting support for BPF as we speak. The real problem here is that Zig should really stop invoking lld when building object files.
Keeping the issue open to track these TODOs:
Also as @LemonBoy pointed out in https://github.com/ziglang/zig/pull/10117#issuecomment-962662345 the zig cc
case needs to be solved as well.
I have the following zig code:
If I try to build it with
zig build-obj probe.zig -target bpfel-freestanding -OReleaseFast
I get: