Using zig to compile Zen C and programs #266
mohankumargupta
started this conversation in
General
Replies: 1 comment
-
|
I will check this tomorrow. Sorry for the delay. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using zig version 0.16.0-dev.2565+68403267 on Windows 11.
I created a fork https://github.com/mohankumargupta/Zen-C
Using that fork I can run:
To create zig-out/bin/zc.exe on windows.
I had to modify src/zen/zen_facts.c because zig c compiler is by default a little stricter than gcc/clang defaults.
then i can debug build:
or release build:
PS: LLMs have trouble catching up with latest zig versions, a claude code skill helps guide them https://github.com/rudedogg/zig-skills/blob/main/zig/SKILL.md (or F12 if all else fails)
Beta Was this translation helpful? Give feedback.
All reactions