Utensil's monorepo for native projects: Rust, Zig, C++..., including code on GPU
0

Configure Feed

Select the types of activity you want to include in your feed.

docs: fix outdated build.zig comment for Zig 0.15 API [AGENT]

- Updated example comment to use correct Zig 0.15 addTest syntax
- Replaced deprecated .target, .optimize, .root_source_file with .root_module
- Added version note to clarify this is for Zig 0.15+ syntax
- Removed outdated parameters that no longer exist in current API

utensil (Jul 14, 2025, 10:58 PM +0800) 65dddd09 0757641b

+2 -4
+2 -4
yard-zig/basic-xp/test_runner.zig
··· 2 2 3 3 // Modded from from https://gist.github.com/karlseguin/c6bea5b35e4e8d26af6f81c22cb5d76b 4 4 5 - // in your build.zig, you can specify a custom test runner: 5 + // in your build.zig, you can specify a custom test runner (Zig 0.15+ syntax): 6 6 // const tests = b.addTest(.{ 7 - // .target = target, 8 - // .optimize = optimize, 7 + // .root_module = your_module, 9 8 // .test_runner = .{ .path = b.path("test_runner.zig"), .mode = .simple }, // add this line 10 - // .root_source_file = b.path("src/main.zig"), 11 9 // }); 12 10 13 11 const std = @import("std");