Skip to content

Commit

Permalink
zwin32: explicitly link ole32
Browse files Browse the repository at this point in the history
  • Loading branch information
hazeycode committed Mar 9, 2024
1 parent 767bd2b commit 408cc84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/zwin32/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub const Package = struct {

pub fn link(pkg: Package, exe: *std.Build.Step.Compile, libs: Libs) void {
exe.root_module.addImport("zwin32", pkg.zwin32);
exe.linkSystemLibrary("ole32");
if (libs.d3d12) exe.step.dependOn(pkg.install_d3d12);
if (libs.xaudio2) exe.step.dependOn(pkg.install_xaudio2);
if (libs.directml) exe.step.dependOn(pkg.install_directml);
Expand Down

0 comments on commit 408cc84

Please sign in to comment.