fix linux builds

This commit is contained in:
Mitchell Hashimoto
2024-06-23 12:12:24 -07:00
parent 5eff2d88a2
commit cb76fe6634
2 changed files with 2 additions and 2 deletions

View File

@ -1017,7 +1017,7 @@ fn addDeps(
// on x86_64.
if (step.rootModuleTarget().os.tag == .linux) {
const triple = try step.rootModuleTarget().linuxTriple(b.allocator);
step.addLibraryPath(b.path(b.fmt("/usr/lib/{s}", .{triple})));
step.addLibraryPath(.{ .cwd_relative = b.fmt("/usr/lib/{s}", .{triple}) });
}
// C files

View File

@ -72,7 +72,7 @@ test "accelFromTrigger" {
try testing.expectEqualStrings("<Super>q", (try accelFromTrigger(&buf, .{
.mods = .{ .super = true },
.key = .q,
.key = .{ .translated = .q },
})).?);
}