| ... | ... | @@ -280,6 +280,13 @@ pub fn build(b: *Builder) !void { |
| 280 | 280 | try addStaticLlvmOptionsToExe(exe); |
| 281 | 281 | try addStaticLlvmOptionsToExe(test_cases); |
| 282 | 282 | } |
| 283 | if (target.isWindows()) { |
| 284 | inline for (.{ exe, test_cases }) |artifact| { |
| 285 | artifact.linkSystemLibrary("version"); |
| 286 | artifact.linkSystemLibrary("uuid"); |
| 287 | artifact.linkSystemLibrary("ole32"); |
| 288 | } |
| 289 | } |
| 283 | 290 | } |
| 284 | 291 | |
| 285 | 292 | const semver = try std.SemanticVersion.parse(version); |
| ... | ... | @@ -614,12 +621,6 @@ fn addStaticLlvmOptionsToExe(exe: *std.build.LibExeObjStep) !void { |
| 614 | 621 | |
| 615 | 622 | // This means we rely on clang-or-zig-built LLVM, Clang, LLD libraries. |
| 616 | 623 | exe.linkSystemLibrary("c++"); |
| 617 | | |
| 618 | | if (exe.target.getOs().tag == .windows) { |
| 619 | | exe.linkSystemLibrary("version"); |
| 620 | | exe.linkSystemLibrary("uuid"); |
| 621 | | exe.linkSystemLibrary("ole32"); |
| 622 | | } |
| 623 | 624 | } |
| 624 | 625 | |
| 625 | 626 | fn addCxxKnownPath( |