From bf862b13f6f97347249918aa5b1836d70f66483c Mon Sep 17 00:00:00 2001 From: RustDesk <71636191+rustdesk@users.noreply.github.com> Date: Tue, 4 Nov 2025 09:40:50 +0800 Subject: [PATCH] Update libs/scrap/build.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- libs/scrap/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/scrap/build.rs b/libs/scrap/build.rs index 4157813b7..d6f1db4f1 100644 --- a/libs/scrap/build.rs +++ b/libs/scrap/build.rs @@ -228,7 +228,9 @@ 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)"); + println!("cargo:rustc-check-cfg=cfg(quartz)"); + println!("cargo:rustc-check-cfg=cfg(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();