| author | |
| committer | |
| log | 8bc09132121d751760b332a30a82c3dfa343a48a |
| tree | fed4f7f2d7a7dc4127a87e9ca1a0f6cae1356c5e |
| parent | e436d9c4ad623d8facefb8e1637b26e63e900277 |
3 files changed, 16 insertions(+), 2 deletions(-)
lib/std/Build/Configuration.zig+7| ... | ... | @@ -1419,6 +1419,13 @@ pub const Path = extern struct { |
| 1419 | 1419 | global_cache, |
| 1420 | 1420 | build_root, |
| 1421 | 1421 | }; |
| 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 | } | |
| 1422 | 1429 | }; |
| 1423 | 1430 | |
| 1424 | 1431 | pub const InstallDestDir = enum(u32) { |
src/Compilation.zig+5-1| ... | ... | @@ -1747,9 +1747,13 @@ pub const CreateOptions = struct { |
| 1747 | 1747 | .no => return null, |
| 1748 | 1748 | .yes_cache => { |
| 1749 | 1749 | assert(opts.cache_mode != .none); |
| 1750 | const target = &opts.root_mod.resolved_target.result; | |
| 1750 | 1751 | return try ea.cacheName(arena, .{ |
| 1751 | 1752 | .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, | |
| 1753 | 1757 | .output_mode = opts.config.output_mode, |
| 1754 | 1758 | .link_mode = opts.config.link_mode, |
| 1755 | 1759 | .version = opts.version, |
src/main.zig+4-1| ... | ... | @@ -3380,7 +3380,10 @@ fn buildOutputType( |
| 3380 | 3380 | .pch => try std.fmt.allocPrint(arena, "{s}.pch", .{root_name}), |
| 3381 | 3381 | else => try std.zig.binNameAlloc(arena, .{ |
| 3382 | 3382 | .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, | |
| 3384 | 3387 | .output_mode = create_module.resolved_options.output_mode, |
| 3385 | 3388 | .link_mode = create_module.resolved_options.link_mode, |
| 3386 | 3389 | .version = optional_version, |