Skip to content

Commit eeaf4aa

Browse files
committed
Fix linking issue on Linux.
Resolves #22
1 parent b582a62 commit eeaf4aa

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

build.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ pub fn build(b: *std.Build) void {
121121
b.installArtifact(zdawn);
122122

123123
linkSystemDeps(b, zdawn);
124-
addLibraryPathsTo(zdawn);
125124

126-
zdawn.linkSystemLibrary("dawn");
127125
zdawn.linkLibC();
128126
if (target.result.abi != .msvc)
129127
zdawn.linkLibCpp();
@@ -219,6 +217,7 @@ pub fn addLibraryPathsTo(compile_step: *std.Build.Step.Compile) void {
219217
},
220218
else => {},
221219
}
220+
compile_step.linkSystemLibrary("dawn");
222221
}
223222

224223
pub fn checkTargetSupported(target: std.Target) bool {

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .zgpu,
33
.fingerprint = 0x670ebe04e453a19e,
44
.version = "0.12.0-dev",
5-
.minimum_zig_version = "0.15.1",
5+
.minimum_zig_version = "0.15.2",
66
.paths = .{
77
"build.zig",
88
"build.zig.zon",

0 commit comments

Comments
 (0)