| ... | ... | @@ -127,6 +127,10 @@ fn log( |
| 127 | 127 | if (@enumToInt(message_level) <= @enumToInt(level)) { |
| 128 | 128 | if (@hasDecl(root, "log")) { |
| 129 | 129 | root.log(message_level, scope, format, args); |
| 130 | } else if (std.Target.current.os.tag == .freestanding) { |
| 131 | // On freestanding one must provide a log function; we do not have |
| 132 | // any I/O configured. |
| 133 | return; |
| 130 | 134 | } else if (builtin.mode != .ReleaseSmall) { |
| 131 | 135 | const held = std.debug.getStderrMutex().acquire(); |
| 132 | 136 | defer held.release(); |