We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-C instrument-coverage
1 parent c0286aa commit 1b3e261Copy full SHA for 1b3e261
src/rustflags.rs
@@ -8,5 +8,14 @@ pub(crate) fn toml() -> toml::Value {
8
rustflags.push(lint);
9
}
10
11
+ if let Some(flags) = std::env::var("RUSTFLAGS").ok() {
12
+ // TODO: could parse this properly and allowlist (or blocklist?)
13
+ // certain flags. This is good enough to at least support
14
+ // `cargo-llvm-cov`.
15
+ if flags.contains("-C instrument-coverage") {
16
+ rustflags.extend(["-C", "instrument-coverage"]);
17
+ }
18
19
+
20
toml::Value::try_from(rustflags).unwrap()
21
0 commit comments