Menu

#2 macOS: Building module fails

1.0
open
nobody
None
2021-03-21
2021-03-21
No

I ran into two separate issues when trying to use setuptools-zig on macOS:

  1. The compile fails with undefined symbols unless you pass "-target native-macos", see: https://github.com/ziglang/zig/issues/8180#issuecomment-797846607
  2. The output file extension from "zig build-lib" is ".dylib", not ".so", so the setup step fails unless you manually rename .dylib -> .so.

Discussion


Log in to post a comment.