build: absolute path should not use b.path

This commit is contained in:
Mitchell Hashimoto
2024-04-18 14:57:00 -07:00
parent 736623b7ec
commit 9fc4bc1e14

View File

@ -1022,7 +1022,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(.{ .path = b.fmt("/usr/lib/{s}", .{triple}) });
}
// C files