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.
1 parent 2d90062 commit 21e72e1Copy full SHA for 21e72e1
crates/cargo-codspeed/src/build.rs
@@ -145,8 +145,9 @@ impl BuildOptions<'_> {
145
// Use --config to set rustflags
146
// Our rust integration has an msrv of 1.74, --config is available since 1.63
147
// https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html#cargo-163-2022-08-11
148
+ // Note: We have to use `cfg(all())` since `build` has a lower precedence.
149
let config_value = format!(
- "build.rustflags=[{}]",
150
+ "target.'cfg(all())'.rustflags=[{}]",
151
flags.into_iter().map(|f| format!("\"{f}\"")).join(",")
152
);
153
cargo.arg("--config").arg(config_value);
0 commit comments