add stripping to non-debug builds

This commit is contained in:
mikkelam 2025-06-20 09:43:22 +02:00
parent d93107134f
commit 362648f78b
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@ A blazingly fast CLI tool for testing internet speed uses fast.com v2 api. Writt
## Why fast-cli? ## 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 - **Blazing fast**: Concurrent connections with adaptive chunk sizing
- **Cross-platform**: Single binary for Linux, macOS, Windows - **Cross-platform**: Single binary for Linux, macOS, Windows
- **Smart stopping**: Uses Coefficient of Variation (CoV) algorithm for adaptive test duration - **Smart stopping**: Uses Coefficient of Variation (CoV) algorithm for adaptive test duration

View file

@ -46,6 +46,7 @@ pub fn build(b: *std.Build) void {
.root_source_file = b.path("src/main.zig"), .root_source_file = b.path("src/main.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
.strip = optimize != .Debug,
}); });
exe.root_module.addImport("zli", mod_zli); exe.root_module.addImport("zli", mod_zli);