From e7d6f9f01281bcc9eb881b116d10ad47174fcec0 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Fri, 12 Feb 2021 14:42:04 +0100 Subject: [PATCH] Use linkLibC instead of linkSystemLibrary to link libc --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index e8a6f30..12aae1d 100644 --- a/build.zig +++ b/build.zig @@ -85,7 +85,7 @@ pub fn build(b: *Builder) void { triangle_exe.setTarget(target); triangle_exe.setBuildMode(mode); triangle_exe.install(); - triangle_exe.linkSystemLibrary("c"); + triangle_exe.linkLibC(); triangle_exe.linkSystemLibrary("glfw"); const vk_xml_path = b.option([]const u8, "vulkan-registry", "Override the to the Vulkan registry") orelse "examples/vk.xml";