Skip to content

Commit 78364fc

Browse files
committed
run bindgen through childprocess instead of run step
1 parent e76d3fb commit 78364fc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.zig

+5-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ pub fn build(b: *std.Build) !void {
2020
b.build_root.handle.access("godot_cpp/gen", .{}) catch |e| {
2121
switch (e) {
2222
error.FileNotFound => {
23-
const binds_run = b.addSystemCommand(&.{ "python", "binding_generator.py", "godot_cpp/gdextension/extension_api.json", "godot_cpp" });
24-
lib_godot.step.dependOn(&binds_run.step);
23+
_ = try std.ChildProcess.run(.{
24+
.allocator = b.allocator,
25+
.argv = &.{ "python", "binding_generator.py", "godot_cpp/gdextension/extension_api.json", "godot_cpp" },
26+
.cwd_dir = b.build_root.handle,
27+
});
2528
},
2629
else => {
2730
return;

0 commit comments

Comments
 (0)