1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Strip non-debug builds

This commit is contained in:
Frank Denis 2021-11-10 15:35:22 +01:00
parent 91340df7a0
commit 620d4529b6

View File

@ -13,6 +13,9 @@ pub fn build(b: *std.build.Builder) !void {
libsodium.setTarget(target);
libsodium.setBuildMode(mode);
libsodium.install();
if (mode != .Debug) {
libsodium.strip = true;
}
libsodium.linkLibC();
libsodium.addIncludeDir("src/libsodium/include/sodium");