fix some issues that fail nightly stage2 compiler

This commit is contained in:
Mitchell Hashimoto
2022-10-13 10:54:30 -07:00
parent a6c3ee3bc2
commit e493a722a3
4 changed files with 6 additions and 6 deletions

6
flake.lock generated
View File

@ -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": {

View File

@ -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...

View File

@ -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;

View File

@ -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}),