1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Only create a shared library where we know it works

This commit is contained in:
Frank Denis 2023-08-05 11:07:20 +02:00
parent 1c2398fb7c
commit 22815d222c

View File

@ -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;