update build syntax

This commit is contained in:
Asmir A 2024-07-16 10:58:36 +02:00
parent a36c82b2ac
commit 8a7923bd4e
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -17,7 +17,7 @@ pub fn build(b: *std.Build) void {
var exe = b.addExecutable(.{
.name = "zremap",
// In this case the main source file is merely a path, however, in more
// In this case the main source file is merely a path, however, in more),
// complicated build scripts, this could be a generated file.
.root_source_file = b.path("src/main.zig"),
.target = target,
@ -57,7 +57,7 @@ pub fn build(b: *std.Build) void {
// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const unit_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});