Switched syntax for the rustc-check-cfg directive emitted by build.rs in the scrap crate to use syntax compatible with Rust toolchain version 1.75. The double-colon syntax requires 1.77 or newer, but the older single-colon syntax works fine on newer versions for this directive.

This commit is contained in:
Jonathan Gilbert
2025-11-02 09:20:59 -06:00
parent bdd883f900
commit 90228b6b04

View File

@@ -228,7 +228,7 @@ fn ffmpeg() {
fn main() {
// in this crate, these are also valid configurations
println!("cargo::rustc-check-cfg=cfg(dxgi,quartz,x11)");
println!("cargo:rustc-check-cfg=cfg(dxgi,quartz,x11)");
// there is problem with cfg(target_os) in build.rs, so use our workaround
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();