diff --git a/helix-term/build.rs b/helix-term/build.rs index 4352404bf..c3b56e1e8 100644 --- a/helix-term/build.rs +++ b/helix-term/build.rs @@ -11,6 +11,7 @@ fn main() { windows_rc::link_icon_in_windows_exe("../contrib/helix-256p.ico"); // alias scancode feature flag + println!("cargo::rustc-check-cfg=cfg(scancode)"); #[cfg(any( feature = "scancode-query", feature = "scancode-evdev", diff --git a/helix-view/build.rs b/helix-view/build.rs index 4f77f3feb..8b735d8f4 100644 --- a/helix-view/build.rs +++ b/helix-view/build.rs @@ -1,9 +1,10 @@ fn main() { // alias scancode feature flag + println!("cargo::rustc-check-cfg=cfg(scancode)"); #[cfg(any( feature = "scancode-query", feature = "scancode-evdev", feature = "scancode-hidapi" - ))] + ))] println!("cargo:rustc-cfg=scancode") }