diff --git a/Cargo.toml b/Cargo.toml index 147ef15..1f56ae3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,5 +18,6 @@ serde_derive = "1.0.194" serde_json = "1.0.110" serde_path_to_error = "0.1" shlex = "1.3" +target-triple = "0.1" termcolor = "1.4" toml = "0.8" diff --git a/src/main.rs b/src/main.rs index f192fce..04fd7ad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -124,7 +124,10 @@ fn do_main() -> Result<()> { doc_targets.push(default_target); } - for target in &doc_targets { + for &target in &doc_targets { + if target == target_triple::HOST { + continue; + } let mut child = Command::new("rustc") .arg("-") .flag_value("--target", target)