mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
compiler: fix compilation errors
This commit is contained in:
@@ -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
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user