Use linkLibC instead of linkSystemLibrary to link libc

This commit is contained in:
Robin Voetter
2021-02-12 14:42:04 +01:00
parent 4ccb530585
commit e7d6f9f012

View File

@@ -85,7 +85,7 @@ pub fn build(b: *Builder) void {
triangle_exe.setTarget(target); triangle_exe.setTarget(target);
triangle_exe.setBuildMode(mode); triangle_exe.setBuildMode(mode);
triangle_exe.install(); triangle_exe.install();
triangle_exe.linkSystemLibrary("c"); triangle_exe.linkLibC();
triangle_exe.linkSystemLibrary("glfw"); triangle_exe.linkSystemLibrary("glfw");
const vk_xml_path = b.option([]const u8, "vulkan-registry", "Override the to the Vulkan registry") orelse "examples/vk.xml"; const vk_xml_path = b.option([]const u8, "vulkan-registry", "Override the to the Vulkan registry") orelse "examples/vk.xml";