Kristian Larsson
Kristian Larsson
@ivmai I'm super busy at the moment preparing for a conference next week, I'll get back as soon as I can after that with more info! :)
zig bundles clang as the C compiler, so these errors are from clang / llvm. zig does specify loads of flags to clang, so all the default flags clang has...
FYI, there are some tracking issues for real projects using zig - https://github.com/ziglang/zig/issues/17144 - https://github.com/ziglang/zig/wiki/Third-Party-Tracking-Issues-(what-is-important-to-other-people%3F) It could perhaps be of interest to put together such a page for issues we...
With "replace -Denable_threads=false to -fsingle-threaded", do you mean we should replace the user visible input? I don't think that is possible. I think the idea with zig build is that...
@ivmai yes, I can add a simple CFLAGS_EXTRA option that just passes through its value to the compiler. I don't see any added value in parsing it to separate arguments...
@ivmai I'm no authoritative zig expert but as far as I know this is not possible. `zig build-exe` supports `-fsingle-threaded` but this is for compiling a single zig module /...
@kassane when I built C++ things with Zig I have had to add `.linkLibCpp()` to my build.zig to get it working, doesn't that mean libc++ is not linked in per...
Zig runs clang/LLVM and per default Zig enables more sanitization of undefined behavior than what clang normally does. Hitting UB behavior then leads to SIGILL so I suspect that is...
Thanks @ivmai. It is indeed right. I added back the dlopen wrapping and it works properly now. I wonder about macos though. Dlopen wrapping isn't supported there IIRC. Hope its...