Take off every Zig!
Nice post! I just confirmed this works on macos-arm64 as well. Couple of additional notes:
If you want to use zig's build system (e.g. project created with zig init-lib), then just change line 18 of build.zig to be a shared lib:
zig init-lib
// const lib = b.addStaticLibrary(.{ const lib = b.addSharedLibrary(.{
Then on the python side the file extension would be in a subfolder (again this is on macos).
simple = cffi.dlopen(os.path.abspath("zig-out/lib/projectname.dylib"))
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Nice post! I just confirmed this works on macos-arm64 as well. Couple of additional notes:
If you want to use zig's build system (e.g. project created with
zig init-lib
), then just change line 18 of build.zig to be a shared lib:Then on the python side the file extension would be in a subfolder (again this is on macos).