Update Jetzig

This commit is contained in:
mitteneer 2024-09-13 13:41:47 -04:00
parent 8a5666c4e9
commit f0c43c7eef
3 changed files with 6 additions and 8 deletions

View file

@ -7,14 +7,12 @@ pub fn build(b: *std.Build) !void {
const exe = b.addExecutable(.{
.name = "zuletzt",
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
// Example dependency:
const iguanas_dep = b.dependency("iguanas", .{ .optimize = optimize, .target = target });
exe.root_module.addImport("iguanas", iguanas_dep.module("iguanas"));
// All dependencies **must** be added to imports above this line.
@ -31,7 +29,7 @@ pub fn build(b: *std.Build) !void {
run_step.dependOn(&run_cmd.step);
const lib_unit_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
@ -39,7 +37,7 @@ pub fn build(b: *std.Build) !void {
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
const exe_unit_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});