| ... | ... | @@ -2311,7 +2311,14 @@ pub const ResolvedTarget = struct { |
| 2311 | 2311 | /// Converts a target query into a fully resolved target that can be passed to |
| 2312 | 2312 | /// various parts of the API. |
| 2313 | 2313 | pub fn resolveTargetQuery(b: *Build, query: Target.Query) ResolvedTarget { |
| 2314 | | if (query.isNative()) return b.host; |
| 2314 | if (query.isNative()) { |
| 2315 | var adjusted = b.host; |
| 2316 | if (query.ofmt) |ofmt| { |
| 2317 | adjusted.query.ofmt = ofmt; |
| 2318 | adjusted.result.ofmt = ofmt; |
| 2319 | } |
| 2320 | return adjusted; |
| 2321 | } |
| 2315 | 2322 | |
| 2316 | 2323 | return .{ |
| 2317 | 2324 | .query = query, |