aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-06-15 21:55:45 +0200
committerHimbeer <himbeer@disroot.org>2024-06-15 21:55:45 +0200
commit50fe6fe03a6db4f293c1921d69a06f4a6facc7be (patch)
tree4250d9cca6784c7f02d869f2e6617fbb72b6790a
parentae5d317408315ac631351b265a79924c281368a9 (diff)
build: Force optimization
Fixes hangs with debug builds on the lpi4a platform.
-rw-r--r--build.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 62a325e..40b49a3 100644
--- a/build.zig
+++ b/build.zig
@@ -22,8 +22,9 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{ .whitelist = &[_]std.zig.CrossTarget{riscv64_freestanding}, .default_target = riscv64_freestanding });
// Standard optimization options allow the person running `zig build` to select
- // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not
+ // between ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not
// set a preferred release mode, allowing the user to decide how to optimize.
+ if (b.release_mode == .off) b.release_mode = .any;
const optimize = b.standardOptimizeOption(.{});
const exe = b.addExecutable(.{