From 620d4529b625910771122d4b4122fcacc6a69a63 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 10 Nov 2021 15:35:22 +0100 Subject: [PATCH] Strip non-debug builds --- build.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.zig b/build.zig index dbc54a0b..3c42f4c1 100644 --- a/build.zig +++ b/build.zig @@ -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");