fn main() { // INTERIM: both llama-cpp-sys-2 and whisper-rs-sys statically link // their own copy of ggml, so GNU ld / lld see duplicate symbols when // linking the kon binary and its lib-tests. --allow-multiple-definition // makes the linker pick the first definition; safe while both crates // pin compatible ggml revisions. Replace with a system-ggml shared-lib // setup as a follow-up. if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("linux") { println!("cargo:rustc-link-arg=-Wl,--allow-multiple-definition"); } tauri_build::build() }