init project setup and zig build config

This commit is contained in:
2026-07-21 16:42:15 +02:00
commit 3e860871f9
8 changed files with 37 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const exe = b.addExecutable(.{
.name = "6soz",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
b.installArtifact(exe);
const test_step = b.step("test", "Run unit tests");
const exe_tests = b.addTest(.{
.root_module = exe.root_module,
});
const run_exe_tests = b.addRunArtifact(exe_tests);
test_step.dependOn(&run_exe_tests.step);
}