#How to generate C output from build.zig?
1 messages · Page 1 of 1 (latest)
Okay, I've fixed one problem. The standard target options need a bit of an override...
const target = b.standardTargetOptions(.{ .default_target = .{ .ofmt = .c } });
1 messages · Page 1 of 1 (latest)
I am attempting to create a C library out of zig, and I have gotten as far as setting the lib.target.ofmt = .c;. This seems to create a .c output file in the cache, but the zig build dies during the install step trying to copy a non-existent .a file. What am I missing?
Okay, I've fixed one problem. The standard target options need a bit of an override...
const target = b.standardTargetOptions(.{ .default_target = .{ .ofmt = .c } });