authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-08-06 12:45:38-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-08-07 00:48:32-07:00
log904fcda736142c07237d0d12728ef5347468cfbe
tree59a5213e319c45ae2ca464d1c281ca31ad5cb118
parentff503edc044104d3d4cf2c2790859561eeca8aec

Compilation: fix -femit-docs


1 files changed, 22 insertions(+), 1 deletions(-)

src/Compilation.zig+22-1
...@@ -4275,8 +4275,29 @@ fn workerDocsWasmFallible(comp: *Compilation, prog_node: std.Progress.Node) anye...@@ -4275,8 +4275,29 @@ fn workerDocsWasmFallible(comp: *Compilation, prog_node: std.Progress.Node) anye
4275 .cc_argv = &.{},4275 .cc_argv = &.{},
4276 .parent = null,4276 .parent = null,
4277 .builtin_mod = null,4277 .builtin_mod = null,
4278 .builtin_modules = null, // there is only one module in this compilation4278 .builtin_modules = null,
4279 });
4280 const walk_mod = try Package.Module.create(arena, .{
4281 .global_cache_directory = comp.global_cache_directory,
4282 .paths = .{
4283 .root = .{
4284 .root_dir = comp.zig_lib_directory,
4285 .sub_path = "docs/wasm",
4286 },
4287 .root_src_path = "Walk.zig",
4288 },
4289 .fully_qualified_name = "Walk",
4290 .inherited = .{
4291 .resolved_target = resolved_target,
4292 .optimize_mode = optimize_mode,
4293 },
4294 .global = config,
4295 .cc_argv = &.{},
4296 .parent = root_mod,
4297 .builtin_mod = root_mod.getBuiltinDependency(),
4298 .builtin_modules = null, // `builtin_mod` is set
4279 });4299 });
4300 try root_mod.deps.put(arena, "Walk", walk_mod);
4280 const bin_basename = try std.zig.binNameAlloc(arena, .{4301 const bin_basename = try std.zig.binNameAlloc(arena, .{
4281 .root_name = root_name,4302 .root_name = root_name,
4282 .target = resolved_target.result,4303 .target = resolved_target.result,