Skip to content

Commit 2a95bd0

Browse files
committed
Fix output calculation
1 parent 6814c20 commit 2a95bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/compiler/context/compilation_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<'a, 'cfg: 'a> CompilationFiles<'a, 'cfg> {
276276
let out_dir = self.out_dir(unit);
277277
let file_stem = self.file_stem(unit);
278278
let link_stem = self.link_stem(unit);
279-
let info = if unit.target.for_host() {
279+
let info = if unit.kind == Kind::Host {
280280
&bcx.host_info
281281
} else {
282282
&bcx.target_info

0 commit comments

Comments
 (0)