File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed
Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ pub fn build(b: *std.Build) !void {
66
77 const include = b .path ("include" );
88
9- const lib = b .addStaticLibrary (.{
9+ const lib = b .addLibrary (.{
1010 .name = "demo" ,
11- .target = target ,
12- .optimize = optimize ,
11+ .root_module = b .createModule (.{ .target = target , .optimize = optimize }),
1312 });
1413 lib .addIncludePath (include );
1514 lib .addCSourceFiles (.{
@@ -23,7 +22,10 @@ pub fn build(b: *std.Build) !void {
2322
2423 { // Test
2524 const test_step = b .step ("test" , "Run tests" );
26- const test_exe = b .addExecutable (.{ .name = "test_demo" , .target = target , .optimize = optimize });
25+ const test_exe = b .addExecutable (.{
26+ .name = "test_demo" ,
27+ .root_module = b .createModule (.{ .target = target , .optimize = optimize }),
28+ });
2729 const run_test = b .addRunArtifact (test_exe );
2830
2931 const catch2_dep = b .dependency ("catch2" , .{ .target = target , .optimize = optimize });
Original file line number Diff line number Diff line change 11.{
2- .name = "cath2UsageDemo" ,
3- .version = "1.0.0" ,
2+ .name = .cath2UsageDemo ,
3+ .version = "1.0.1" ,
4+ .minimum_zig_version = "0.14.0" ,
5+ .fingerprint = 0x77f3f25b1734ef7b ,
6+
47 .dependencies = .{
5- .catch2 = .{
6- .url = ".." ,
7- .hash = "1220aef10cc88ccd919517ece637e54cfd7381c91ab9ee79a2d0d8791165ccd6bfff" ,
8- },
8+ .catch2 = .{ .path = ".." },
99 },
10- .minimum_zig_version = "0.12.0" ,
1110 .paths = .{
1211 "build.zig" ,
1312 "build.zig.zon" ,
You can’t perform that action at this time.
0 commit comments