aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorCarl Åstholm <carl@astholm.se>2025-01-24 00:00:12 +0100
committerCarl Åstholm <carl@astholm.se>2025-07-26 12:06:43 +0200
commit154bd2fd0597b23b4e4c95ad86d2b8c5274161e2 (patch)
treea9c3de74e0c9607f53b9489cf50dfa556e411919 /test/tests.zig
parent413179ccfca32691504805d04ab1359104d22144 (diff)
downloadzig-154bd2fd0597b23b4e4c95ad86d2b8c5274161e2.tar.gz
zig-154bd2fd0597b23b4e4c95ad86d2b8c5274161e2.zip
Migrate from deprecated `Step.Compile` APIs
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tests.zig b/test/tests.zig
index caec19d556..a12312d278 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -2371,10 +2371,10 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
} else "";
const use_pic = if (test_target.pic == true) "-pic" else "";
- for (options.include_paths) |include_path| these_tests.addIncludePath(b.path(include_path));
+ for (options.include_paths) |include_path| these_tests.root_module.addIncludePath(b.path(include_path));
if (target.os.tag == .windows) {
- for (options.windows_libs) |lib| these_tests.linkSystemLibrary(lib);
+ for (options.windows_libs) |lib| these_tests.root_module.linkSystemLibrary(lib, .{});
}
const qualified_name = b.fmt("{s}-{s}-{s}-{s}{s}{s}{s}{s}{s}{s}", .{