Skip to content

Commit f093797

Browse files
bjorn3tgross35
authored andcommitted
Simplify rustc-check-cfg emission in build.rs
1 parent d2fb5b0 commit f093797

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

build.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,11 @@ fn main() {
145145
// avoid warnings.
146146
if rustc_minor_ver >= 80 {
147147
for cfg in ALLOWED_CFGS {
148-
if rustc_minor_ver >= 75 {
149-
println!("cargo:rustc-check-cfg=cfg({cfg})");
150-
} else {
151-
println!("cargo:rustc-check-cfg=values({cfg})");
152-
}
148+
println!("cargo:rustc-check-cfg=cfg({cfg})");
153149
}
154150
for &(name, values) in CHECK_CFG_EXTRA {
155151
let values = values.join("\",\"");
156-
if rustc_minor_ver >= 75 {
157-
println!("cargo:rustc-check-cfg=cfg({name},values(\"{values}\"))");
158-
} else {
159-
println!("cargo:rustc-check-cfg=values({name},\"{values}\")");
160-
}
152+
println!("cargo:rustc-check-cfg=cfg({name},values(\"{values}\"))");
161153
}
162154
}
163155
}

0 commit comments

Comments
 (0)