remove explicit comptime because of miscompilation

This commit is contained in:
2025-10-24 14:20:51 +02:00
parent f78a8eaf1a
commit d39a834f4e

View File

@@ -71,7 +71,6 @@ fn intersect(comptime as: []const @Type(.enum_literal), comptime bs: []const @Ty
/// Checks whether the log is enabled for a specific combination of `tags`. Depends on the `options` /// Checks whether the log is enabled for a specific combination of `tags`. Depends on the `options`
/// set. /// set.
pub fn logEnabled(comptime tags: []const @Type(.enum_literal)) bool { pub fn logEnabled(comptime tags: []const @Type(.enum_literal)) bool {
comptime {
// If `tags` has at least one in `options.tags_disabled` then we never log. // If `tags` has at least one in `options.tags_disabled` then we never log.
if (options.tags_disabled.len > 0) { if (options.tags_disabled.len > 0) {
if (intersect(tags, options.tags_disabled)) { if (intersect(tags, options.tags_disabled)) {
@@ -83,7 +82,7 @@ pub fn logEnabled(comptime tags: []const @Type(.enum_literal)) bool {
if (options.tags_enabled.len > 0) { if (options.tags_enabled.len > 0) {
return intersect(tags, options.tags_enabled); return intersect(tags, options.tags_enabled);
} }
}
// If neither is set then we just log everything. // If neither is set then we just log everything.
return true; return true;
} }