/// Flags to pass to rustdoc when invoked from cargo test, per package.
pub rustdocflags: HashMap<PackageId, Vec<String>>,
- pub host: String,
- pub target: String,
-
config: &'cfg Config,
/// Rustc process to be used by default
rustc_process: rustc,
rustc_workspace_wrapper_process,
primary_rustc_process,
- host: bcx.host_triple().to_string(),
- target: bcx.target_data.short_name(&default_kind).to_string(),
target_runner: target_runner(bcx, default_kind)?,
})
}
let mut runtool: &Option<(std::path::PathBuf, Vec<String>)> = &None;
if doctest_xcompile {
runtool = compilation.target_runner();
- } else if compilation.host != compilation.target {
+ } else if options.compile_opts.build_config.requested_kind.is_host() {
return Ok((Test::Doc, errors));
}