ikskuh / SDL.zig

A shallow wrapper around SDL that provides object API and error handling
MIT License
360 stars 79 forks source link

linkTtf needs updating. #157

Closed nmichaels closed 4 months ago

nmichaels commented 8 months ago

linkTtf calls std.zig.system.NativeTargetInfo.detect, which is gone thanks to this breaking change.

Here's how far I got:

const target = (std.zig.system.resolveTargetQuery(exe.root_module.resolved_target.?.query) catch @panic("failed to detect native target info!"));

That's clearly wrong, but might have useful pointers for anyone who wants to pick this up. Alternatively, someone who actually knows how build.zig is supposed to work could maybe fix this easily.