fix: fail build for older versions

This commit is contained in:
2024-11-21 11:35:50 +00:00
parent 94658cd808
commit a2c0e3374b
4 changed files with 39 additions and 2 deletions

View File

@ -6,7 +6,6 @@ fn main() {
for (name, _value) in env::vars() {
if name.starts_with("DEP_FFMPEG_") && !name.starts_with("DEP_FFMPEG_CHECK_") {
let feature_name = name["DEP_FFMPEG_".len()..name.len()].to_lowercase();
println!(r#"cargo::rustc-check-cfg=cfg(feature, values("{feature_name}"))"#);
println!(r#"cargo::rustc-cfg=feature="{feature_name}""#);
}
}