Update Jetzig
This commit is contained in:
parent
8a5666c4e9
commit
f0c43c7eef
3 changed files with 6 additions and 8 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue