mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
fix for latest breaking libstd changes to Options
This commit is contained in:

committed by
Mitchell Hashimoto

parent
28c078ec37
commit
e32b4849d1
@ -109,13 +109,6 @@ pub fn main() !MainReturn {
|
||||
try app_runtime.run();
|
||||
}
|
||||
|
||||
pub const std_options = struct {
|
||||
// Our log level is always at least info in every build mode.
|
||||
pub const log_level: std.log.Level = switch (builtin.mode) {
|
||||
.Debug => .debug,
|
||||
else => .info,
|
||||
};
|
||||
|
||||
// The function std.log will call.
|
||||
pub fn logFn(
|
||||
comptime level: std.log.Level,
|
||||
@ -161,6 +154,14 @@ pub const std_options = struct {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
pub const std_options: std.Options = .{
|
||||
// Our log level is always at least info in every build mode.
|
||||
.log_level = switch (builtin.mode) {
|
||||
.Debug => .debug,
|
||||
else => .info,
|
||||
},
|
||||
.logFn = logFn,
|
||||
};
|
||||
|
||||
/// This represents the global process state. There should only
|
||||
|
Reference in New Issue
Block a user