Skip to content

Commit

Permalink
fix host
Browse files Browse the repository at this point in the history
  • Loading branch information
xdBronch committed Jan 5, 2024
1 parent 76f03b2 commit 71146b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/build_runner/master.zig
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,18 @@ pub fn main() !void {
cache.addPrefix(global_cache_directory);
cache.hash.addBytes(builtin.zig_version_string);

const host = try std.zig.system.resolveTargetQuery(.{});
const host: std.Build.ResolvedTarget = .{
.query = .{},
.result = try std.zig.system.resolveTargetQuery(.{}),
};

const builder = try Build.create(
allocator,
zig_exe,
build_root_directory,
local_cache_directory,
global_cache_directory,
.{ .result = host, .query = std.Target.Query.fromTarget(host) },
host,
&cache,
dependencies.root_deps,
);
Expand Down

0 comments on commit 71146b1

Please sign in to comment.