-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Zig bindings - Generator #1809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zig bindings - Generator #1809
Conversation
Amazing! So zig could interact with raw dynamic library api without further ffi wrapper? |
Exactly, no need libC! cFFI in Zig is optional. |
Interesting! What are you doing with this binding?
|
Please also update README with this new binding.
|
Note you also need to target dev branch. |
Hi @aquynh
Plan to package unicorn for use with zig projects. Draft and stdout:
Ok |
exclude new binding on rust build
Thanks and welcome! |
Ref.: #1217
All architectures were listed in Ziglang.
They are compatible with both zig stage 1 (0.10.x or lower) and stage2 (0.10.x or higher) backends.
Note: Zig version 0.9 and 0.10 have support for both backends, but 0.11 it will be stage2 only.
zig 0.10: stage2 (default), add build flag:
-fstage1
switch to stage1.zig 0.9: stage1 (default), add build flag:
-fno-stage1
switch to stage2.