Cloudef / zig-aio

io_uring like asynchronous API and coroutine powered IO tasks for zig
https://cloudef.github.io/zig-aio/
MIT License
175 stars 6 forks source link

fix "undefined symbol: zefi_stack_swap" #11

Closed notsatvrn closed 2 months ago

notsatvrn commented 2 months ago

This seems to fix this error on my machine (running Gentoo Linux, Zig 0.13.0), and it looks a bit cleaner IMO

Cloudef commented 2 months ago

Hmm, I wonder if this is actually valid to do in zig or that it just happens to compile correctly for linux?

Cloudef commented 2 months ago

Nevermind, I forgot the actual symbol is in the asm code. I think this change is good as well. Not sure why the original code did not work for you, but it might be compilation bug with zig.