fn verifyLibDir(io: Io, lib_dir_path: []const u8) bool io: Iolib_dir_path: []const u81158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169 fn verifyLibDir(io: Io, lib_dir_path: []const u8) bool {
std.debug.assert(Dir.path.isAbsolute(lib_dir_path)); // should be already handled in `findVia*`
var dir = Dir.openDirAbsolute(io, lib_dir_path, .{}) catch return false;
defer dir.close(io);
const stat = dir.statFile(io, "vcruntime.lib", .{}) catch return false;
if (stat.kind != .file)
return false;
return true;
}