diff --git a/Cargo.toml b/Cargo.toml index 2988977..bdf9a2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,4 +22,4 @@ chrono = "0.4.0" failure = "0.1.1" [build-dependencies] -gcc = "0.3.45" +cc = "1.0.17" diff --git a/build.rs b/build.rs index 5091520..8a3551f 100644 --- a/build.rs +++ b/build.rs @@ -1,7 +1,11 @@ -extern crate gcc; +extern crate cc; fn main() { if cfg!(target_os = "macos") { - gcc::Config::new().file("objc/notify.m").flag("-fmodules").compile("libnotify.a"); + cc::Build::new() + .file("objc/notify.m") + .flag("-fmodules") + .warnings(false) + .compile("notify"); } }