Skip to content

Commit bd3ed2a

Browse files
committed
takeown dxc
1 parent 48433ca commit bd3ed2a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.zig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,14 @@ pub fn addCompileShaders(
244244
else => @panic("Unsupported target"),
245245
};
246246
switch (builtin.target.os.tag) {
247-
.linux, .macos => {
247+
.windows => {
248+
const takeown = b.addSystemCommand(&.{ "takeown", "/f", dxc_path });
249+
build_shaders.dependOn(&takeown.step);
250+
},
251+
else => {
248252
const chmod = b.addSystemCommand(&.{ "chmod", "+x", dxc_path });
249253
build_shaders.dependOn(&chmod.step);
250254
},
251-
else => {},
252255
}
253256

254257
return .{

0 commit comments

Comments
 (0)