temporary fix to issue #413 with #412 not building on release-safe.

This commit is contained in:
Omar Alhammadi 2021-11-03 13:31:20 +04:00 committed by Auguste Rame
parent 4d6d842fa5
commit d4b6b97c01

View File

@ -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 {