From 0658fc7228151e5c08e8a0260d0b98f711757499 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 28 Dec 2024 19:28:09 -0800 Subject: [PATCH] update to zig 0.13 --- .gitignore | 1 + build.zig | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5f0340fa0707198de3746d6b25ae919e76b4ecc7..0533fe823954fe32d8d6a90aebff84f003cbad92 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ zig-* deps.zig *.db zigmod.lock +.zig-cache diff --git a/build.zig b/build.zig index ae3f9887b3b00978cdadc9d90a5a081402a5dd85..c5018f02df58fc276d32a5064aa3b4fe12fd294d 100644 --- a/build.zig +++ b/build.zig @@ -1,14 +1,13 @@ const std = @import("std"); const deps = @import("./deps.zig"); -pub fn build(b: *std.build.Builder) void { - var target = b.standardTargetOptions(.{}); - if (target.isGnuLibC()) target.setGnuLibCVersion(2, 28, 0); +pub fn build(b: *std.Build) void { + const target = b.standardTargetOptions(.{}); const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug; const exe = b.addExecutable(.{ .name = "zig-zorm", - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = mode, }); -- 2.54.0