From 3a628619545513fad1f7344817c9bd60e6cfefd6 Mon Sep 17 00:00:00 2001 From: Robert Jureczko Date: Thu, 18 Jul 2024 20:39:17 +0200 Subject: [PATCH] feat: updated build file for v0.13 --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index d2d2375..1c793b6 100644 --- a/build.zig +++ b/build.zig @@ -2,7 +2,7 @@ const std = @import("std"); const Builder = std.Build; pub fn build(b: *std.Build) !void { - const uno = std.zig.CrossTarget{ + const uno = std.Target.Query{ .cpu_arch = .avr, .cpu_model = .{ .explicit = &std.Target.avr.cpu.atmega328p }, .os_tag = .freestanding, @@ -11,12 +11,12 @@ pub fn build(b: *std.Build) !void { const exe = b.addExecutable(.{ .name = "avr-arduino-zig", - .root_source_file = .{ .path = "src/start.zig" }, + .root_source_file = b.path("src/start.zig"), .target = b.resolveTargetQuery(uno), .optimize = .ReleaseSafe, }); - exe.setLinkerScriptPath(.{ .path = "src/linker.ld" }); + exe.setLinkerScriptPath(b.path("src/linker.ld")); b.installArtifact(exe);