From d4b6b97c019972de6e4fd710045d2b9349147ad3 Mon Sep 17 00:00:00 2001 From: Omar Alhammadi Date: Wed, 3 Nov 2021 13:31:20 +0400 Subject: [PATCH] temporary fix to issue #413 with #412 not building on release-safe. --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {