Skip to content

Commit 78bcf26

Browse files
committed
Link dynamically with SDL and allow strip
1 parent 3bed900 commit 78bcf26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.zig

+1-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ pub fn build(b: *std.Build) !void {
9494
.root_source_file = b.path("src/zimpact/zimpact.zig"),
9595
.target = target,
9696
.optimize = optimize,
97-
.strip = false,
9897
});
9998
b.installArtifact(lib);
10099

@@ -122,7 +121,7 @@ pub fn build(b: *std.Build) !void {
122121
.optimize = optimize,
123122
});
124123
if (is_sdl_platform) {
125-
sdl_sdk.link(exe, .static);
124+
sdl_sdk.link(exe, .dynamic);
126125
}
127126
exe.root_module.addImport("zimpact", mod_zi);
128127
const install_exe = b.addInstallArtifact(exe, .{});

0 commit comments

Comments
 (0)