Skip to content

Commit

Permalink
respect user release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
190n committed May 16, 2024
1 parent db35f7b commit 7dfe60a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 7dfe60a

Please sign in to comment.