Skip to content

Commit 53b1f48

Browse files
committed
Remove compatability shim for emscripten build
1 parent 940b2c2 commit 53b1f48

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

build.zig

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ pub fn build(b: *std.Build) void {
7979
dir.close(mod.owner.graph.io);
8080
} else if (@hasDecl(std.fs, "Dir")) {
8181
// <=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 };
82+
const open_dir_opts: std.fs.Dir.OpenOptions = .{
83+
.access_sub_paths = true,
84+
.follow_symlinks = false,
85+
};
8786

8887
var dir = std.fs.openDirAbsolute(cache_include, open_dir_opts) catch @panic("No emscripten cache. Generate it!");
8988

0 commit comments

Comments
 (0)