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 0644a87 commit 07bb6bfCopy full SHA for 07bb6bf
build.rs
@@ -167,11 +167,19 @@ fn main() {
167
// https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg
168
if libc_check_cfg {
169
for cfg in ALLOWED_CFGS {
170
- println!("cargo:rustc-check-cfg=values({})", cfg);
+ if rustc_minor_ver >= 75 {
171
+ println!("cargo:rustc-check-cfg=cfg({})", cfg);
172
+ } else {
173
+ println!("cargo:rustc-check-cfg=values({})", cfg);
174
+ }
175
}
176
for &(name, values) in CHECK_CFG_EXTRA {
177
let values = values.join("\",\"");
- println!("cargo:rustc-check-cfg=values({},\"{}\")", name, values);
178
179
+ println!("cargo:rustc-check-cfg=cfg({},values(\"{}\"))", name, values);
180
181
+ println!("cargo:rustc-check-cfg=values({},\"{}\")", name, values);
182
183
184
185
0 commit comments