mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 17:26:09 +03:00
only show optimization
This commit is contained in:
@ -83,12 +83,12 @@ pub const BuildConfig = struct {
|
|||||||
pub const version = options.app_version;
|
pub const version = options.app_version;
|
||||||
pub const version_string = options.app_version_string;
|
pub const version_string = options.app_version_string;
|
||||||
|
|
||||||
|
/// The optimization mode as a string.
|
||||||
pub const mode_string = mode: {
|
pub const mode_string = mode: {
|
||||||
const m = @tagName(builtin.mode);
|
const m = @tagName(builtin.mode);
|
||||||
if (std.mem.lastIndexOfScalar(u8, m, '.')) |i| break :mode m[i..];
|
if (std.mem.lastIndexOfScalar(u8, m, '.')) |i| break :mode m[i..];
|
||||||
break :mode m;
|
break :mode m;
|
||||||
};
|
};
|
||||||
pub const baseline = std.Target.Cpu.baseline(builtin.target.cpu.arch).features.eql(builtin.target.cpu.features);
|
|
||||||
|
|
||||||
/// The artifact we're producing. This can be used to determine if we're
|
/// The artifact we're producing. This can be used to determine if we're
|
||||||
/// building a standalone exe, an embedded lib, etc.
|
/// building a standalone exe, an embedded lib, etc.
|
||||||
|
@ -251,10 +251,7 @@ pub const GlobalState = struct {
|
|||||||
|
|
||||||
// Output some debug information right away
|
// Output some debug information right away
|
||||||
std.log.info("ghostty version={s}", .{build_config.version_string});
|
std.log.info("ghostty version={s}", .{build_config.version_string});
|
||||||
std.log.info("ghostty built with{s} -Doptimize={s}", .{
|
std.log.info("ghostty build optimize={s}", .{build_config.mode_string});
|
||||||
if (build_config.baseline) " -Dcpu=baseline" else "",
|
|
||||||
build_config.mode_string,
|
|
||||||
});
|
|
||||||
std.log.info("runtime={}", .{build_config.app_runtime});
|
std.log.info("runtime={}", .{build_config.app_runtime});
|
||||||
std.log.info("font_backend={}", .{build_config.font_backend});
|
std.log.info("font_backend={}", .{build_config.font_backend});
|
||||||
std.log.info("dependency harfbuzz={s}", .{harfbuzz.versionString()});
|
std.log.info("dependency harfbuzz={s}", .{harfbuzz.versionString()});
|
||||||
|
Reference in New Issue
Block a user