awtfdb
awtfdb copied to clipboard
doesnt cross compile for windows
- [ ] use argsWithAllocator rather than args
after a while this is much more than using argsWithAllocator, especially because i'm requiring libz, libmagic, and graphicsmagick.
current errors
$ zig build -Dtarget=x86_64-windows-gnu
/home/luna/git/awtfdb/src/include_main.zig:514:11: error: C import failed
const c = @cImport({
^~~~~~~~
referenced by:
MimeCookie: /home/luna/git/awtfdb/src/include_main.zig:519:13
MimeCookie: /home/luna/git/awtfdb/src/include_main.zig:518:20
remaining reference traces hidden; use '-freference-trace' to see all reference traces
/usr/lib/zig/std/os.zig:149:32: error: root struct of file 'c' has no member named 'empty_sigset'
pub const empty_sigset = system.empty_sigset;
~~~~~~^~~~~~~~~~~~~
/usr/lib/zig/std/process.zig:751:13: error: In Windows, use initWithAllocator instead.
@compileError("In Windows, use initWithAllocator instead.");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: wrapper-awtfdb...
also required: https://github.com/lun-4/libmagic.zig/issues/1
Same issue