| ... | @@ -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 compilation | 4278 | .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, |