Skip to content

Commit

Permalink
Only create a shared library where we know it works
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Aug 5, 2023
1 parent 4936130 commit c298d1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ pub fn build(b: *std.build.Builder) !void {
}

for (libs) |lib| {
if (lib == shared and
!(target.isDarwin() or target.isDragonFlyBSD() or target.isFreeBSD() or
target.isLinux() or target.isNetBSD() or target.isOpenBSD() or target.isWindows()))
{
continue;
}
b.installArtifact(lib);
if (optimize != .Debug and !target.isWindows() and lib != static) {
lib.strip = true;
Expand Down

0 comments on commit c298d1a

Please sign in to comment.