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:
parent
bdd883f900
commit
90228b6b04
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue