Skip to content

Commit dd3b55a

Browse files
committed
small cleanup
1 parent dd6239d commit dd3b55a

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

build.zig

-35
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub fn build(b: *std.Build) !void {
2121
});
2222

2323
const config_header = getConfigHeader(b, t);
24-
// b.addInstallHeaderFile(source: LazyPath, dest_rel_path: []const u8)
2524

2625
// zig build of python
2726
const libpython = try buildLibPython(b, target, optimize, config_header);
@@ -67,17 +66,6 @@ pub fn build(b: *std.Build) !void {
6766
run_step.dependOn(&run_cmd.step);
6867
examples_step.dependOn(&exe.step);
6968
}
70-
71-
const translate_step = b.step("translate", "Translates the c files");
72-
73-
const config_translate = translateFile(b, b.path("Include/cpython/initconfig.h"), target, optimize, config_header);
74-
const translate_install = b.addInstallDirectory(.{
75-
.source_dir = config_translate.getOutput(),
76-
.install_dir = .{ .custom = "translate" },
77-
.install_subdir = "headers",
78-
});
79-
80-
translate_step.dependOn(&translate_install.step);
8169
}
8270

8371
fn getModule(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.Mode) *std.Build.Module {
@@ -115,29 +103,6 @@ fn addIncludes(
115103
step.addConfigHeader(config_header);
116104
}
117105

118-
fn translateFile(
119-
b: *std.Build,
120-
file: std.Build.LazyPath,
121-
target: std.Build.ResolvedTarget,
122-
optimize: std.builtin.OptimizeMode,
123-
config_header: *std.Build.Step.ConfigHeader,
124-
) *Step.TranslateC {
125-
const step = b.addTranslateC(.{
126-
.root_source_file = file,
127-
.target = target,
128-
.optimize = optimize,
129-
});
130-
131-
step.step.dependOn(&config_header.step);
132-
133-
step.addIncludeDir(b.path("Include/internal").getPath(b));
134-
step.addIncludeDir(b.path(".").getPath(b));
135-
step.addIncludeDir(b.path("Include").getPath(b));
136-
// step.addIncludeDir(config_header.output_file.getPath());
137-
138-
return step;
139-
}
140-
141106
fn buildCpython(
142107
b: *std.Build,
143108
target: std.Build.ResolvedTarget,

0 commit comments

Comments
 (0)