fix build

This commit is contained in:
yuzu 2025-05-30 01:12:48 -05:00
parent 01a22ccc9e
commit 6c68c4cb33
2 changed files with 7 additions and 34 deletions

View File

@ -1,34 +1,8 @@
const std = @import("std"); pub fn build(b: *@import("std").Build) void {
_ = b.addStaticLibrary(.{
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = .ReleaseSafe;
const exe_mod = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
const exe = b.addExecutable(.{
.name = "aether", .name = "aether",
.root_module = exe_mod, .root_source_file = b.path("root.zig"),
.target = b.standardTargetOptions(.{}),
.optimize = b.standardOptimizeOption(.{}),
}); });
b.installArtifact(exe);
const run_cmd = b.addRunArtifact(exe);
run_cmd.step.dependOn(b.getInstallStep());
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
const exe_unit_tests = b.addTest(.{
.root_module = exe_mod,
});
const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests);
const test_step = b.step("test", "Run unit tests");
test_step.dependOn(&run_exe_unit_tests.step);
} }

View File

@ -1,13 +1,12 @@
.{ .{
.name = .aether, .name = .aether,
.version = "0.0.0", .version = "1.0.0",
.fingerprint = 0x255cfdbd72bde30d, .fingerprint = 0x255cfdbd72bde30d,
.minimum_zig_version = "0.15.0-dev.552+bc2f7c754", .minimum_zig_version = "0.15.0-dev.552+bc2f7c754",
.dependencies = .{ .dependencies = .{},
},
.paths = .{ .paths = .{
"build.zig", "build.zig",
"build.zig.zon", "build.zig.zon",