Skip to content

Commit e25589e

Browse files
chore: updates
1 parent b56774a commit e25589e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn build(b: *std.Build) !void {
1313
const target = b.standardTargetOptions(.{});
1414
const optimize = b.standardOptimizeOption(.{});
1515

16-
const linkage = b.option(std.Build.Step.Compile.Linkage, "linkage", "Sets the link mode") orelse .static;
16+
const linkage = b.option(std.builtin.LinkMode, "linkage", "Sets the link mode") orelse @as(std.builtin.LinkMode, if (target.result.isGnuLibC()) .dynamic else .static);
1717
const appletsList = b.option([]const []const u8, "applets", "List of applets") orelse &[_][]const u8{
1818
"arch",
1919
"cal",

0 commit comments

Comments
 (0)