pub fn resolveTargetQuery(b: *Build, query: Target.Query) ResolvedTarget 2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542pub fn resolveTargetQuery(b: *Build, query: Target.Query) ResolvedTarget {
if (query.isNative()) {
// Hot path. This is faster than querying the native CPU and OS again.
return b.graph.host;
}
const io = b.graph.io;
return .{
.query = query,
.result = std.zig.system.resolveTargetQuery(io, query) catch
@panic("unable to resolve target query"),
};
}
Converts a target query into a fully resolved target that can be passed to various parts of the API.