diff --git a/src/main.zig b/src/main.zig index 389ac61..dfb6fbc 100644 --- a/src/main.zig +++ b/src/main.zig @@ -33,7 +33,7 @@ pub const log_level = .debug; var actual_log_level: std.log.Level = switch (zig_builtin.mode) { .Debug => .debug, - else => build_options.log_level, + else => @intToEnum(std.log.Level, @enumToInt(build_options.log_level)), //temporary fix to build failing on release-safe due to a Zig bug }; pub fn log(comptime message_level: std.log.Level, comptime scope: @Type(.EnumLiteral), comptime format: []const u8, args: anytype) void {