diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-06-11 14:41:42 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-07-06 01:00:18 +0200 |
| commit | b461d07a5464aec86c533434dab0b58edfffb331 (patch) | |
| tree | d3e19fc63623fb765ff08757c069e27d915ef66e /test/tests.zig | |
| parent | 044ccf4138f8b027be01c95ad759d5302e2ff39d (diff) | |
| download | zig-b461d07a5464aec86c533434dab0b58edfffb331.tar.gz zig-b461d07a5464aec86c533434dab0b58edfffb331.zip | |
Sema: Stop adding Windows implib link inputs for `extern "..."` syntax.
Closes #23971.
Diffstat (limited to 'test/tests.zig')
| -rw-r--r-- | test/tests.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/tests.zig b/test/tests.zig index efc824c4ea..9068d65012 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -2308,6 +2308,7 @@ const ModuleTestOptions = struct { desc: []const u8, optimize_modes: []const OptimizeMode, include_paths: []const []const u8, + windows_libs: []const []const u8, skip_single_threaded: bool, skip_non_native: bool, skip_freebsd: bool, @@ -2437,6 +2438,10 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { for (options.include_paths) |include_path| these_tests.addIncludePath(b.path(include_path)); + if (target.os.tag == .windows) { + for (options.windows_libs) |lib| these_tests.linkSystemLibrary(lib); + } + const qualified_name = b.fmt("{s}-{s}-{s}-{s}{s}{s}{s}{s}{s}{s}", .{ options.name, triple_txt, @@ -2732,6 +2737,10 @@ pub fn addIncrementalTests(b: *std.Build, test_step: *Step) !void { }), }); + if (b.graph.host.result.os.tag == .windows) { + incr_check.root_module.linkSystemLibrary("advapi32", .{}); + } + var dir = try b.build_root.handle.openDir("test/incremental", .{ .iterate = true }); defer dir.close(); |
