Fixed issues when using Threaded.single_threaded

This commit is contained in:
Caleb Gardner
2026-05-24 02:50:24 -05:00
parent 5975bbb4a2
commit 712c4d0a19
7 changed files with 125 additions and 77 deletions
+5 -2
View File
@@ -15,9 +15,12 @@ pub fn build(b: *std.Build) !void {
zig_squashfs_options.addOption(bool, "allow_lzo", allow_lzo);
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
var optimize = b.standardOptimizeOption(.{});
if (optimize == .Debug) debug = true;
if (debug == true)
optimize = .Debug;
if (optimize == .Debug)
debug = true;
const c = b.addTranslateC(.{
.optimize = optimize,