Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ const version = std.SemanticVersion{
.pre = null,
};

const min_glibc_version = std.SemanticVersion{ .major = 2, .minor = 17, .patch = 0, .pre = null };

const ffi_targets: []const std.Target.Query = &.{
.{ .cpu_arch = .aarch64, .os_tag = .macos },
.{ .cpu_arch = .aarch64, .os_tag = .linux, .abi = .gnu },
.{ .cpu_arch = .aarch64, .os_tag = .linux, .abi = .gnu, .glibc_version = min_glibc_version },
.{ .cpu_arch = .aarch64, .os_tag = .linux, .abi = .musl },
.{ .cpu_arch = .x86_64, .os_tag = .macos },
.{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .gnu },
.{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .gnu, .glibc_version = min_glibc_version },
.{ .cpu_arch = .x86_64, .os_tag = .linux, .abi = .musl },
Comment thread
araustin01 marked this conversation as resolved.
};

Expand Down Expand Up @@ -186,6 +188,7 @@ fn buildZlinter(
.{
.exclude = &.{
b.path(".private/"),
b.path("build.zig"),
Comment thread
araustin01 marked this conversation as resolved.
Outdated
b.path("main.zig"),
b.path("lib/"),
b.path("examples/"),
Expand Down
8 changes: 4 additions & 4 deletions build/update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ else
PRE="\"$PRE\""
fi

sed -i.bak -E "s|(\.major =)(.*)|\1 ${MAJOR},|g" build.zig
sed -i.bak -E "s|(.minor =)(.*)|\1 ${MINOR},|g" build.zig
sed -i.bak -E "s|(.patch =)(.*)|\1 ${PATCH},|g" build.zig
sed -i.bak -E "s|(.pre =)(.*)|\1 ${PRE},|g" build.zig
sed -i.bak -E "s|^([[:space:]]+\.major =)(.*)|\1 ${MAJOR},|" build.zig
sed -i.bak -E "s|^([[:space:]]+\.minor =)(.*)|\1 ${MINOR},|" build.zig
sed -i.bak -E "s|^([[:space:]]+\.patch =)(.*)|\1 ${PATCH},|" build.zig
sed -i.bak -E "s|^([[:space:]]+\.pre =)(.*)|\1 ${PRE},|" build.zig
rm build.zig.bak

sed -i.bak -E "s|(\.version = )(.*)|\1\"${VERSION}\",|g" build.zig.zon
Expand Down
Loading