From 362648f78b46c25d6a837783bca31d0f6b36f453 Mon Sep 17 00:00:00 2001 From: mikkelam Date: Fri, 20 Jun 2025 09:43:22 +0200 Subject: [PATCH] add stripping to non-debug builds --- README.md | 2 +- build.zig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5efdeb2..b334e3c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A blazingly fast CLI tool for testing internet speed uses fast.com v2 api. Writt ## Why fast-cli? -- **Tiny binary**: Just 1.4 MiB, no runtime dependencies +- **Tiny binary**: Just 1.2 MiB, no runtime dependencies - **Blazing fast**: Concurrent connections with adaptive chunk sizing - **Cross-platform**: Single binary for Linux, macOS, Windows - **Smart stopping**: Uses Coefficient of Variation (CoV) algorithm for adaptive test duration diff --git a/build.zig b/build.zig index 44c814f..bbda07b 100644 --- a/build.zig +++ b/build.zig @@ -46,6 +46,7 @@ pub fn build(b: *std.Build) void { .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, + .strip = optimize != .Debug, }); exe.root_module.addImport("zli", mod_zli);