authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-03-17 23:02:59-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:54:34-07:00
log8bc09132121d751760b332a30a82c3dfa343a48a
treefed4f7f2d7a7dc4127a87e9ca1a0f6cae1356c5e
parente436d9c4ad623d8facefb8e1637b26e63e900277

compiler: fix compilation errors


3 files changed, 16 insertions(+), 2 deletions(-)

lib/std/Build/Configuration.zig+7
......@@ -1419,6 +1419,13 @@ pub const Path = extern struct {
14191419 global_cache,
14201420 build_root,
14211421 };
1422
1423 pub fn toCachePath(path: Path, c: *const Configuration, arena: Allocator) std.Build.Cache.Path {
1424 _ = c;
1425 _ = arena;
1426 _ = path;
1427 @panic("TODO");
1428 }
14221429};
14231430
14241431pub const InstallDestDir = enum(u32) {
src/Compilation.zig+5-1
......@@ -1747,9 +1747,13 @@ pub const CreateOptions = struct {
17471747 .no => return null,
17481748 .yes_cache => {
17491749 assert(opts.cache_mode != .none);
1750 const target = &opts.root_mod.resolved_target.result;
17501751 return try ea.cacheName(arena, .{
17511752 .root_name = opts.root_name,
1752 .target = &opts.root_mod.resolved_target.result,
1753 .cpu_arch = target.cpu.arch,
1754 .os_tag = target.os.tag,
1755 .ofmt = target.ofmt,
1756 .abi = target.abi,
17531757 .output_mode = opts.config.output_mode,
17541758 .link_mode = opts.config.link_mode,
17551759 .version = opts.version,
src/main.zig+4-1
......@@ -3380,7 +3380,10 @@ fn buildOutputType(
33803380 .pch => try std.fmt.allocPrint(arena, "{s}.pch", .{root_name}),
33813381 else => try std.zig.binNameAlloc(arena, .{
33823382 .root_name = root_name,
3383 .target = target,
3383 .cpu_arch = target.cpu.arch,
3384 .os_tag = target.os.tag,
3385 .ofmt = target.ofmt,
3386 .abi = target.abi,
33843387 .output_mode = create_module.resolved_options.output_mode,
33853388 .link_mode = create_module.resolved_options.link_mode,
33863389 .version = optional_version,