From c673458e1d44ba8981103bf336a6b2edd25198ac Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 9 Aug 2021 01:41:01 -0700 Subject: [PATCH] build.zig- add glibc check so that `zig build run` works without `-Dtarget` --- build.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 2f54914b1b510b5b630fe91258daf1e38e4dcad2..61313d14d88b741e8f3a2ea51cc74ffbd0825668 100644 --- a/build.zig +++ b/build.zig @@ -2,7 +2,8 @@ const std = @import("std"); const deps = @import("./deps.zig"); pub fn build(b: *std.build.Builder) void { - const target = b.standardTargetOptions(.{}); + var target = b.standardTargetOptions(.{}); + if (target.isGnuLibC()) target.setGnuLibCVersion(2, 28, 0); const mode = b.standardReleaseOptions(); -- 2.54.0