We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 940b2c2 commit 53b1f48Copy full SHA for 53b1f48
1 file changed
build.zig
@@ -79,11 +79,10 @@ pub fn build(b: *std.Build) void {
79
dir.close(mod.owner.graph.io);
80
} else if (@hasDecl(std.fs, "Dir")) {
81
// <=0.15.2 -> Dir on std.fs
82
- // TODO: Remove compatibility shim when Zig 0.16.0 is the minimum required version.
83
- const open_dir_opts: std.fs.Dir.OpenOptions = if (@hasField(std.fs.Dir.OpenOptions, "follow_symlinks"))
84
- .{ .access_sub_paths = true, .follow_symlinks = false }
85
- else
86
- .{ .access_sub_paths = true, .no_follow = true };
+ const open_dir_opts: std.fs.Dir.OpenOptions = .{
+ .access_sub_paths = true,
+ .follow_symlinks = false,
+ };
87
88
var dir = std.fs.openDirAbsolute(cache_include, open_dir_opts) catch @panic("No emscripten cache. Generate it!");
89
0 commit comments