authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-09 01:41:01 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-09 01:41:01 -07:00
logc673458e1d44ba8981103bf336a6b2edd25198ac
tree01a5390aaa4b2abfb78e98ae1f74820f22ca2069
parent83ace4590914fa1d5bd887c2f983434aef46cc79

build.zig- add glibc check so that `zig build run` works without `-Dtarget`


1 files changed, 2 insertions(+), 1 deletions(-)

build.zig+2-1
...@@ -2,7 +2,8 @@ const std = @import("std");...@@ -2,7 +2,8 @@ const std = @import("std");
2const deps = @import("./deps.zig");2const deps = @import("./deps.zig");
33
4pub fn build(b: *std.build.Builder) void {4pub fn build(b: *std.build.Builder) void {
5 const target = b.standardTargetOptions(.{});5 var target = b.standardTargetOptions(.{});
6 if (target.isGnuLibC()) target.setGnuLibCVersion(2, 28, 0);
67
7 const mode = b.standardReleaseOptions();8 const mode = b.standardReleaseOptions();
89