thread 12129 panic: getPath() was called on a GeneratedFile that wasn't built yet. Is there a missing Step dependency on step 'zig build-lib xlatr_plugin_c_c11 Debug native'?
to get it installed (you may also need to explicitly specify an h_dir override in your call to addInstallArtifact), but it may or may not work because -femit-h is currently a bit broken. See resurrect emit-h · Issue #9698 · ziglang/zig · GitHub for more details.
I’m not sure why zig seems to be anti-shared libraries and wants you to recompile everything from source (link with addModule). Might be a C ABI issue but seems like there should be a Zig ABI that supports things like tagged unions and error unions. rant over
Here is the error that I got from that. I will keep working on it. I may have to just get build to run build from the command line if nothing else works.
error: unable to update file from '/home/.../.zig-cache/o/d6ee426166d3e5d2639aa583e484de65/xlatr_plugin_c_c11.h' to '/home/.../zig-out/include/xlatr_plugin_c_c11.h': FileNotFound
I’m also unable to find a way to make -femit-h work, either with zig build or zig build-lib. I have a small zig library I developed with the intent to provide a C interface but it looks like making the header file will be done by hand.
This seems like an important use case for zig at least according to the language reference so it will be good when it becomes a priority again.