build: use the same optimization level for regular and debuginfo builds

This commit is contained in:
CJ van den Berg 2025-09-30 10:48:39 +02:00
parent f5bfcd9219
commit 8fb29416f3
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -108,8 +108,9 @@ fn build_release(
// .{ .cpu_arch = .x86_64, .os_tag = .windows },
// .{ .cpu_arch = .aarch64, .os_tag = .windows },
};
const optimize_release = .ReleaseFast;
const optimize_debug = .ReleaseSafe;
const optimize = b.standardOptimizeOption(.{});
const optimize_release = optimize;
const optimize_debug = optimize;
const write_file_step = b.addWriteFiles();
const version_file = write_file_step.add("version", version);