From 7dfe60a1090276c88c56928942d9cb2741aabcf4 Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Wed, 15 May 2024 18:51:03 -0700 Subject: [PATCH] respect user release mode --- build.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index a0484c1..86a11f0 100644 --- a/build.zig +++ b/build.zig @@ -13,9 +13,7 @@ pub fn build(b: *std.Build) void { // Standard optimization options allow the person running `zig build` to select // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not // set a preferred release mode, allowing the user to decide how to optimize. - const optimize = b.standardOptimizeOption(.{ - .preferred_optimize_mode = .ReleaseSmall, - }); + const optimize = b.standardOptimizeOption(.{}); const use_avr_gcc = b.option( bool, @@ -66,6 +64,7 @@ pub fn build(b: *std.Build) void { .target = target, .optimize = optimize, }); + // bench.root_module.strip = false; bench.root_module.addImport("build_options", options_module); const bench_runner = b.addInstallBinFile(bench.getEmittedBin(), "bench"); const bench_install_step = b.step("bench", "Compile a benchmark harness");