fn main() { //println!("cargo:rerun-if-changed=plthook/plthook_elf.c"); #[cfg(target_os = "linux")] let file = "plthook/plthook_elf.c"; #[cfg(target_os = "macos")] let file = "plthook/plthook_osx.c"; #[cfg(target_os = "windows")] let file = "plthook/plthook_win32.c"; cc::Build::new() .file(file) .include("plthook") .shared_flag(true) .compile("plthook"); }