Skip to content

Commit

Permalink
Disable incremental to workaround rust-lang/rust#50203.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Jun 18, 2018
1 parent c4a6938 commit 05d1c1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cargo-cov/src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ impl<'a> Cargo<'a> {
/// * Place all output artifact to `target/cov/build/` instead of `target/`, so the profiled objects will not
/// interfere with normal objects
/// * Configure `cargo` to use [`cargo-cov` shims](../shim/index.html) when building and running tests.
/// * Disable incremental compilation to workaround rustc issue [#50203].
///
/// [#50203]: https://github.com/rust-lang/rust/issues/50203
fn prepare_cov_build_path(&self) -> Result<()> {
let self_path = match current_exe() {
Ok(path) => escape(Cow::Owned(path.into_string_lossy())).into_owned(),
Expand Down Expand Up @@ -150,6 +153,7 @@ impl<'a> Cargo<'a> {
target_dir: ".",
rustc: &rustc_shim,
rustdoc: &rustdoc_shim,
incremental: false,
},
target,
})?;
Expand Down Expand Up @@ -338,6 +342,7 @@ struct CargoConfigBuild<'a> {
target_dir: &'a str,
rustc: &'a Path,
rustdoc: &'a Path,
incremental: bool,
}

#[derive(Debug, Serialize)]
Expand Down

0 comments on commit 05d1c1e

Please sign in to comment.