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 b648598 commit dd12b10Copy full SHA for dd12b10
crates/cargo-codspeed/tests/cargo_config.in/.cargo/config.toml
@@ -3,5 +3,8 @@
3
[build]
4
rustflags = ["--cfg", "this_does_nothing"]
5
6
+[target.x86_64-unknown-linux-gnu]
7
+rustflags = ["--cfg", "target_feature_flag"]
8
+
9
[target.'cfg(all())']
10
rustflags = ["--cfg", "custom_feature_flag"]
crates/cargo-codspeed/tests/cargo_config.in/benches/cargo_config_bench.rs
@@ -8,6 +8,11 @@ fn bench_failing_without_custom_flag(c: &mut Criterion) {
compile_error!(
"custom_feature_flag is not enabled - .cargo/config.toml rustflags not applied"
);
11
12
+ #[cfg(not(target_feature_flag))]
13
+ compile_error!(
14
+ "target_feature_flag is not enabled - .cargo/config.toml rustflags not applied"
15
+ );
16
})
17
});
18
}
0 commit comments