File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -173,11 +173,19 @@ fn main() {
173
173
// https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg
174
174
if libc_check_cfg {
175
175
for cfg in ALLOWED_CFGS {
176
- println ! ( "cargo:rustc-check-cfg=values({})" , cfg) ;
176
+ if rustc_minor_ver >= 75 {
177
+ println ! ( "cargo:rustc-check-cfg=cfg({})" , cfg) ;
178
+ } else {
179
+ println ! ( "cargo:rustc-check-cfg=values({})" , cfg) ;
180
+ }
177
181
}
178
182
for & ( name, values) in CHECK_CFG_EXTRA {
179
183
let values = values. join ( "\" ,\" " ) ;
180
- println ! ( "cargo:rustc-check-cfg=values({},\" {}\" )" , name, values) ;
184
+ if rustc_minor_ver >= 75 {
185
+ println ! ( "cargo:rustc-check-cfg=cfg({},values(\" {}\" ))" , name, values) ;
186
+ } else {
187
+ println ! ( "cargo:rustc-check-cfg=values({},\" {}\" )" , name, values) ;
188
+ }
181
189
}
182
190
}
183
191
}
You can’t perform that action at this time.
0 commit comments