compiler: fix compilation errors

This commit is contained in:
Andrew Kelley
2026-03-17 23:02:59 -07:00
parent 0bca61e6bf
commit 8d964600cd
3 changed files with 16 additions and 2 deletions
+7
View File
@@ -1419,6 +1419,13 @@ pub const Path = extern struct {
global_cache,
build_root,
};
pub fn toCachePath(path: Path, c: *const Configuration, arena: Allocator) std.Build.Cache.Path {
_ = c;
_ = arena;
_ = path;
@panic("TODO");
}
};
pub const InstallDestDir = enum(u32) {
+5 -1
View File
@@ -1752,9 +1752,13 @@ pub const CreateOptions = struct {
.no => return null,
.yes_cache => {
assert(opts.cache_mode != .none);
const target = &opts.root_mod.resolved_target.result;
return try ea.cacheName(arena, .{
.root_name = opts.root_name,
.target = &opts.root_mod.resolved_target.result,
.cpu_arch = target.cpu.arch,
.os_tag = target.os.tag,
.ofmt = target.ofmt,
.abi = target.abi,
.output_mode = opts.config.output_mode,
.link_mode = opts.config.link_mode,
.version = opts.version,
+4 -1
View File
@@ -3391,7 +3391,10 @@ fn buildOutputType(
.pch => try std.fmt.allocPrint(arena, "{s}.pch", .{root_name}),
else => try std.zig.binNameAlloc(arena, .{
.root_name = root_name,
.target = target,
.cpu_arch = target.cpu.arch,
.os_tag = target.os.tag,
.ofmt = target.ofmt,
.abi = target.abi,
.output_mode = create_module.resolved_options.output_mode,
.link_mode = create_module.resolved_options.link_mode,
.version = optional_version,