diff --git a/build.zig b/build.zig index 4a54d41..b0828f6 100644 --- a/build.zig +++ b/build.zig @@ -169,13 +169,6 @@ pub fn build(b: *std.Build) !void { .root_source_file = .{ .path = root_path ++ "image_processor.zig" }, }); - if (target.isDarwin()) { - process_assets_exe.addIncludePath(.{ .path = root_path ++ "libs/system-sdk/macos12/usr/include" }); - process_assets_exe.addFrameworkPath(.{ .path = root_path ++ "libs/system-sdk/macos12/System/Library/Frameworks" }); - process_assets_exe.addLibraryPath(.{ .path = root_path ++ "libs/system-sdk/macos12/usr/lib" }); - } - - process_assets_exe.linkLibC(); process_assets_exe.addModule("zigimg", zigimg_module); var run_process_assets = b.addRunArtifact(process_assets_exe); run_process_assets.addArg(root_path); diff --git a/image_processor.zig b/image_processor.zig index 81aab76..74970ba 100644 --- a/image_processor.zig +++ b/image_processor.zig @@ -16,7 +16,8 @@ const Image = struct { }; pub fn main() !void { - const allocator = std.heap.c_allocator; + var gpa = std.heap.GeneralPurposeAllocator(.{}){}; + const allocator = gpa.allocator(); var args = try std.process.argsAlloc(allocator); defer std.process.argsFree(allocator, args);