mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 12:05:11 -07:00
Only create a shared library where we know it works
This commit is contained in:
parent
1c2398fb7c
commit
22815d222c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user