rsepassi / zigcoro

A Zig coroutine library
BSD Zero Clause License
132 stars 13 forks source link

fix: zig 0.12 #17

Closed kitsuniru closed 8 months ago

kitsuniru commented 9 months ago

close #18

rsepassi commented 8 months ago

Great, thank you. Could you update the README as well to specify which version you used?

rsepassi commented 8 months ago

Also a local test shows that these still break:

zig build test-aio
zig build benchmark
rsepassi commented 8 months ago

my zig env locally:

{
 "zig_exe": "/Users/ryan/zig/0.12.0-dev.2046+d3a163f86/files/zig",
 "lib_dir": "/Users/ryan/zig/0.12.0-dev.2046+d3a163f86/files/lib",
 "std_dir": "/Users/ryan/zig/0.12.0-dev.2046+d3a163f86/files/lib/std",
 "global_cache_dir": "/Users/ryan/.cache/zig",
 "version": "0.12.0-dev.2046+d3a163f86",
 "target": "aarch64-macos.13.5.2...13.5.2-none",
 "env": {
  "ZIG_GLOBAL_CACHE_DIR": null,
  "ZIG_LOCAL_CACHE_DIR": null,
  "ZIG_LIB_DIR": null,
  "ZIG_LIBC": null,
  "ZIG_BUILD_RUNNER": null,
  "ZIG_VERBOSE_LINK": null,
  "ZIG_VERBOSE_CC": null,
  "ZIG_BTRFS_WORKAROUND": null,
  "CC": null,
  "NO_COLOR": null,
  "XDG_CACHE_HOME": null,
  "HOME": "/Users/ryan"
 }
}
kitsuniru commented 8 months ago

@rsepassi added actual version (same as your) + fixed tests, both passed successfully:

root# zig build test-aio
root# zig build benchmark
steps [2/5] zig build-exe benchmark ReleaseFast native... LLVM Emit Object... Running benchmark context_switch
steps [3/5] install benchmark... ns/ctxswitch: 12
rsepassi commented 8 months ago

thanks!