| ... | @@ -156,11 +156,11 @@ pub fn defaultLog( | ... | @@ -156,11 +156,11 @@ pub fn defaultLog( |
| 156 | comptime format: []const u8, | 156 | comptime format: []const u8, |
| 157 | args: anytype, | 157 | args: anytype, |
| 158 | ) void { | 158 | ) void { |
| 159 | if (builtin.os.tag == .freestanding) { | 159 | if (builtin.os.tag == .freestanding) |
| 160 | // On freestanding one must provide a log function; we do not have | 160 | @compileError( |
| 161 | // any I/O configured. | 161 | \\freestanding targets do not have I/O configured; |
| 162 | return; | 162 | \\please provide at least an empty `log` function declaration |
| 163 | } | 163 | ); |
| 164 | | 164 | |
| 165 | const level_txt = comptime message_level.asText(); | 165 | const level_txt = comptime message_level.asText(); |
| 166 | const prefix2 = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): "; | 166 | const prefix2 = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): "; |