#[cfg(target_os = "macos")] fn main() { println!("cargo:rustc-link-lib=framework=JavaScriptCore"); } #[cfg(target_os = "linux")] fn main() { pkg_config::probe_library("javascriptcoregtk-4.0").unwrap(); }