Skip to content

Commit

Permalink
fix running doctest for host target
Browse files Browse the repository at this point in the history
  • Loading branch information
Freax13 committed Apr 14, 2020
1 parent 5a051eb commit 060c5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/ops/cargo_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn run_doc_tests(
let mut runtool: &Option<(std::path::PathBuf, Vec<String>)> = &None;
if doctest_xcompile {
runtool = compilation.target_runner();
} else if options.compile_opts.build_config.requested_kind.is_host() {
} else if !options.compile_opts.build_config.requested_kind.is_host() {
return Ok((Test::Doc, errors));
}

Expand Down

0 comments on commit 060c5e1

Please sign in to comment.