Converts a target query into a fully resolved target that can be passed to various parts of the API.
pub fn resolveTargetQuery(b: *Build, query: Target.Query) ResolvedTarget
pub 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"),
};
}