aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJonathan Marler <johnnymarler@gmail.com>2022-02-06 23:52:08 -0700
committerJonathan Marler <johnnymarler@gmail.com>2022-05-11 18:40:53 -0600
commit9e89000ffc92fd881ccb59d2571debe003a2f7b1 (patch)
tree0ada26a5978e82567dfe8f21fded83758142dbfd /doc
parent15d5988e692c182892a118115fd7025048e06c29 (diff)
downloadzig-9e89000ffc92fd881ccb59d2571debe003a2f7b1.tar.gz
zig-9e89000ffc92fd881ccb59d2571debe003a2f7b1.zip
Update usages of `process.getEnvMap` and change BufMap -> EnvMap where applicable
# Conflicts: # lib/std/build/RunStep.zig
Diffstat (limited to 'doc')
-rw-r--r--doc/docgen.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/docgen.zig b/doc/docgen.zig
index 3dd58a012d..a101b96be7 100644
--- a/doc/docgen.zig
+++ b/doc/docgen.zig
@@ -1708,7 +1708,7 @@ fn genHtml(
}
}
-fn exec(allocator: Allocator, env_map: *std.BufMap, args: []const []const u8) !ChildProcess.ExecResult {
+fn exec(allocator: Allocator, env_map: *process.EnvMap, args: []const []const u8) !ChildProcess.ExecResult {
const result = try ChildProcess.exec(.{
.allocator = allocator,
.argv = args,
@@ -1732,7 +1732,7 @@ fn exec(allocator: Allocator, env_map: *std.BufMap, args: []const []const u8) !C
return result;
}
-fn getBuiltinCode(allocator: Allocator, env_map: *std.BufMap, zig_exe: []const u8) ![]const u8 {
+fn getBuiltinCode(allocator: Allocator, env_map: *process.EnvMap, zig_exe: []const u8) ![]const u8 {
const result = try exec(allocator, env_map, &[_][]const u8{ zig_exe, "build-obj", "--show-builtin" });
return result.stdout;
}