(deps_target_dir: &Path)
| 249 | } |
| 250 | |
| 251 | fn clean_deps(deps_target_dir: &Path) { |
| 252 | std::process::Command::new("cargo") |
| 253 | .arg("clean") |
| 254 | .arg("--target-dir") |
| 255 | .arg(deps_target_dir) |
| 256 | .stderr(std::process::Stdio::inherit()) |
| 257 | .stdout(std::process::Stdio::inherit()) |
| 258 | .status() |
| 259 | .and_then(map_status_to_result) |
| 260 | .unwrap(); |
| 261 | } |
| 262 | |
| 263 | /// Attempt find the rlib that matches `base`, if multiple rlibs are found |
| 264 | /// then a clean build is required and `None` is returned. |