Function resolveTargetQuery [src]
Converts a target query into a fully resolved target that can be passed to
various parts of the API.
Prototype
pub fn resolveTargetQuery(b: *Build, query: Target.Query) ResolvedTarget
Parameters
b: *Build
query: Target.Query
Source
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;
}
return .{
.query = query,
.result = std.zig.system.resolveTargetQuery(query) catch
@panic("unable to resolve target query"),
};
}