| ... | @@ -280,6 +280,13 @@ pub fn build(b: *Builder) !void { | ... | @@ -280,6 +280,13 @@ pub fn build(b: *Builder) !void { |
| 280 | try addStaticLlvmOptionsToExe(exe); | 280 | try addStaticLlvmOptionsToExe(exe); |
| 281 | try addStaticLlvmOptionsToExe(test_cases); | 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 | const semver = try std.SemanticVersion.parse(version); | 292 | const semver = try std.SemanticVersion.parse(version); |
| ... | @@ -614,12 +621,6 @@ fn addStaticLlvmOptionsToExe(exe: *std.build.LibExeObjStep) !void { | ... | @@ -614,12 +621,6 @@ fn addStaticLlvmOptionsToExe(exe: *std.build.LibExeObjStep) !void { |
| 614 | | 621 | |
| 615 | // This means we rely on clang-or-zig-built LLVM, Clang, LLD libraries. | 622 | // This means we rely on clang-or-zig-built LLVM, Clang, LLD libraries. |
| 616 | exe.linkSystemLibrary("c++"); | 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 | fn addCxxKnownPath( | 626 | fn addCxxKnownPath( |