Closed gh0st-work closed 1 month ago
Maybe missing, -lunwind
(EH ABI) or try replacing -lc
to -lc++
. Also, for zig triple-target arch-linux-gnu
, remove unknown
Maybe missing,
-lunwind
(EH ABI) or try replacing-lc
to-lc++
. Also, for zig triple-targetarch-linux-gnu
, remove unknownI can compile it linking with
libunwind
or c++, but it will be great to known what is the issue, why it suddenly stopped working.
Also, most likely need to change the label from bug
to question
Zig Version
0.12.0 (x86_64-unknown-linux-gnu)
Steps to Reproduce and Observed Behavior
Basically I have Rust -> C -> Zig interop, that is built via bash script:
-Zbuild-std-features=panic_immediate_abort
flag on rustc/cargo means do not unwind on panic, just abortOn version
0.11.0
it compiles and runs successfully. On version0.12.0
it spits:And with
-fno-lld
:I can compile it linking with
libunwind
or c++, but it will be great to known what is the issue, why it suddenly stopped working. Last time it worked because it was a fluke and you somehow just changed the internals?Expected Behavior
Compile / know what's changed