Skip to content

Commit 2048a53

Browse files
- Fixed Linux Build Error
Suggested by @Erdragh, seems like setting the linkage for the dawn library could fix the linux build problem, and not impacted to other platform because running a testing triangle shader program with zgpu on windows still works without any issue. Let's see if this version could pass.
1 parent f0e492b commit 2048a53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ pub fn build(b: *std.Build) void {
112112

113113
const zdawn = b.addLibrary(.{
114114
.name = "zdawn",
115+
.linkage = .dynamic,
115116
.root_module = b.createModule(.{
116117
.target = target,
117118
.optimize = optimize,

0 commit comments

Comments
 (0)