diff --git a/Cargo.toml b/Cargo.toml index 3b13fcb..7bb99c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "objc_exception" -version = "0.1.1" +version = "0.1.2" authors = ["Steven Sheldon"] description = "Rust interface for Objective-C's throw and try/catch statements." @@ -14,4 +14,4 @@ exclude = [".gitignore"] build = "build.rs" [build-dependencies] -gcc = "0.3" +cc = "1" diff --git a/build.rs b/build.rs index 773795a..ba728b6 100644 --- a/build.rs +++ b/build.rs @@ -1,5 +1,7 @@ -extern crate gcc; +extern crate cc; fn main() { - gcc::compile_library("libexception.a", &["extern/exception.m"]); + cc::Build::new() + .file("extern/exception.m") + .compile("libexception.a"); }