build.zig: fix for latest zig

This commit is contained in:
Luna 2021-04-03 21:09:30 -03:00
parent ebf716de17
commit 2acb45fdca

View file

@ -24,14 +24,14 @@ fn setupLinks(step: *builds.LibExeObjStep) void {
for (possible_lilv_include_dirs) |possible_lilv_dir| { for (possible_lilv_include_dirs) |possible_lilv_dir| {
var possible_dir = std.fs.cwd().openDir(possible_lilv_dir, .{}) catch |err| { var possible_dir = std.fs.cwd().openDir(possible_lilv_dir, .{}) catch |err| {
std.debug.warn("possible lilv {} fail: {}\n", .{ possible_lilv_dir, err }); std.debug.warn("possible lilv {s} fail: {s}\n", .{ possible_lilv_dir, err });
continue; continue;
}; };
possible_dir.close(); possible_dir.close();
found_any_lilv = true; found_any_lilv = true;
std.debug.warn("found lilv at '{}'\n", .{possible_lilv_dir}); std.debug.warn("found lilv at '{s}'\n", .{possible_lilv_dir});
step.addIncludeDir(possible_lilv_dir); step.addIncludeDir(possible_lilv_dir);
} }