mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 18:15:18 -07:00
Only create a shared library where we know it works
This commit is contained in:
parent
4936130b91
commit
c298d1a8c6
@ -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