Skip to content

Commit 05d1c1e

Browse files
committed
Disable incremental to workaround rust-lang/rust#50203.
1 parent c4a6938 commit 05d1c1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cargo-cov/src/cargo.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ impl<'a> Cargo<'a> {
120120
/// * Place all output artifact to `target/cov/build/` instead of `target/`, so the profiled objects will not
121121
/// interfere with normal objects
122122
/// * Configure `cargo` to use [`cargo-cov` shims](../shim/index.html) when building and running tests.
123+
/// * Disable incremental compilation to workaround rustc issue [#50203].
124+
///
125+
/// [#50203]: https://github.com/rust-lang/rust/issues/50203
123126
fn prepare_cov_build_path(&self) -> Result<()> {
124127
let self_path = match current_exe() {
125128
Ok(path) => escape(Cow::Owned(path.into_string_lossy())).into_owned(),
@@ -150,6 +153,7 @@ impl<'a> Cargo<'a> {
150153
target_dir: ".",
151154
rustc: &rustc_shim,
152155
rustdoc: &rustdoc_shim,
156+
incremental: false,
153157
},
154158
target,
155159
})?;
@@ -338,6 +342,7 @@ struct CargoConfigBuild<'a> {
338342
target_dir: &'a str,
339343
rustc: &'a Path,
340344
rustdoc: &'a Path,
345+
incremental: bool,
341346
}
342347

343348
#[derive(Debug, Serialize)]

0 commit comments

Comments
 (0)