Skip to content

Commit 2785263

Browse files
committed
add some comments
1 parent dd3b55a commit 2785263

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.zig

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pub fn build(b: *std.Build) !void {
2222

2323
const config_header = getConfigHeader(b, t);
2424

25-
// zig build of python
2625
const libpython = try buildLibPython(b, target, optimize, config_header);
2726
libpython.linkLibrary(libz_dep.artifact("z"));
2827
libpython.linkLibrary(openssl_dep.artifact("openssl"));
@@ -92,6 +91,7 @@ const examples = [_]Example{
9291
.desc = "Basic eval of python program in a string",
9392
},
9493
};
94+
9595
fn addIncludes(
9696
b: *std.Build,
9797
step: *Step.Compile,
@@ -103,6 +103,7 @@ fn addIncludes(
103103
step.addConfigHeader(config_header);
104104
}
105105

106+
/// Build standalone python exectuable
106107
fn buildCpython(
107108
b: *std.Build,
108109
target: std.Build.ResolvedTarget,
@@ -132,7 +133,7 @@ fn buildCpython(
132133
return cpython;
133134
}
134135

135-
// https://github.com/Rexicon226/zig-cpython/blob/master/build.zig
136+
/// Build python as static lib
136137
fn buildLibPython(
137138
b: *std.Build,
138139
target: std.Build.ResolvedTarget,

0 commit comments

Comments
 (0)