Skip to content

Commit 299833b

Browse files
committed
make dxc executable
1 parent 4730132 commit 299833b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.zig

+10
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pub fn build(b: *std.Build) !void {
4545
.{ .name = "options", .module = options_module },
4646
.{ .name = "zwindows", .module = zwindows_module },
4747
},
48+
4849
});
4950
}
5051

@@ -225,6 +226,15 @@ pub const CompileShaders = struct {
225226
self.zwindows.path("bin/x64").getPath(b),
226227
);
227228
}
229+
230+
switch (builtin.target.os.tag) {
231+
.linux, .macos => {
232+
const chmod = b.addSystemCommand(&.{ "chmod", "+x", dxc_path });
233+
cmd_step.step.dependOn(&chmod.step);
234+
},
235+
else => {},
236+
}
237+
228238
self.step.dependOn(&cmd_step.step);
229239
}
230240
};

0 commit comments

Comments
 (0)