From 61d2234743e192bbee1d05c1d231427c3338d2af Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 10 Jul 2024 00:42:16 -0700 Subject: [PATCH] std.Build.Watch: add ONDIR to fanotify event mask This makes mkdir/rmdir events show up. --- lib/std/Build/Watch.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/Build/Watch.zig b/lib/std/Build/Watch.zig index e9b4449748..e4bef7ca4e 100644 --- a/lib/std/Build/Watch.zig +++ b/lib/std/Build/Watch.zig @@ -19,6 +19,7 @@ pub const fan_mask: std.os.linux.fanotify.MarkMask = .{ .MOVED_FROM = true, .MOVED_TO = true, .MOVE_SELF = true, + .ONDIR = true, }; pub const init: Watch = .{