mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
fix some issues that fail nightly stage2 compiler
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@ -109,11 +109,11 @@
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1664107732,
|
||||
"narHash": "sha256-xgPnToE80t8NCYWTB3YGE9gHTor/K5UgMNklbD4xIMQ=",
|
||||
"lastModified": 1665663057,
|
||||
"narHash": "sha256-k42CNjlArnr64st2EBlDiZzo0jBzCs6eta7zeb2KH6w=",
|
||||
"owner": "mitchellh",
|
||||
"repo": "zig-overlay",
|
||||
"rev": "7ba828439e11e80e797bdbb2cfc975b36111d7cd",
|
||||
"rev": "049f82ae9bc43f9ced8e3aa52f936b186c09c85f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -99,7 +99,7 @@ pub const SfntTag = enum(c_int) {
|
||||
pclt = c.FT_SFNT_PCLT,
|
||||
|
||||
/// The data type for a given sfnt tag.
|
||||
pub fn DataType(self: SfntTag) type {
|
||||
pub fn DataType(comptime self: SfntTag) type {
|
||||
return switch (self) {
|
||||
.os2 => c.TT_OS2,
|
||||
else => unreachable, // As-needed...
|
||||
|
@ -22,7 +22,7 @@ pub fn link(
|
||||
defer flags.deinit();
|
||||
|
||||
const lib = b.addStaticLibrary("macos", null);
|
||||
step.addCSourceFile(thisDir() ++ "/text/ext.c", flags.items);
|
||||
step.addCSourceFile(comptime thisDir() ++ "/text/ext.c", flags.items);
|
||||
step.linkFramework("CoreFoundation");
|
||||
step.linkFramework("CoreText");
|
||||
return lib;
|
||||
|
@ -57,7 +57,7 @@ pub fn Stream(comptime Handler: type) type {
|
||||
switch (action_opt orelse continue) {
|
||||
.print => |p| if (@hasDecl(T, "print")) try self.handler.print(p),
|
||||
.execute => |code| try self.execute(code),
|
||||
.csi_dispatch => |csi| try self.csiDispatch(csi),
|
||||
.csi_dispatch => |csi_action| try self.csiDispatch(csi_action),
|
||||
.esc_dispatch => |esc| try self.escDispatch(esc),
|
||||
.osc_dispatch => |cmd| log.warn("unhandled OSC: {}", .{cmd}),
|
||||
.dcs_hook => |dcs| log.warn("unhandled DCS hook: {}", .{dcs}),
|
||||
|
Reference in New Issue
Block a user