3 ms·
I built this after struggling with editor integration while working on a game decompilation project. Zig's build system is great for C/C++ cross-compilation,
by deevus 1y ago
I built this after struggling with editor integration while working on a game
decompilation project. Zig's build system is great for C/C++ cross-compilation,
but editors couldn't find any includes.
Technical approach: The tool hooks into build.zig, extracts dependency paths
from Zig's cache, and generates a compile_flags.txt that clangd understands.
Currently supports -I flags only. Planning to add -D macros and -std flags
based on feedback.
Happy to answer questions about implementation details.
- hiccuphippo 1y agoI wonder, would this help port projects from cmake to build.zig? I tried porting something (SDLPoP, a port of Prince of Persia) and the amount of macros I had to set up was overwhelming.
- deevus 1y agoIt will help with the editor experience, but not the porting itself. Porting to build.zig can be a bit of work. It does have some capability to use cmake config, which can help make the process easier. I ported wildmidi across and consumed their config (I think it was cmake). I have a PR open there: https://github.com/Mindwerks/wildmidi/pull/260 https://github.com/Mindwerks/wildmidi/pull/260