Skip to content

Commit

Permalink
Switch to cc builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Oct 29, 2019
1 parent 5071216 commit c86ad3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand All @@ -14,4 +14,4 @@ exclude = [".gitignore"]
build = "build.rs"

[build-dependencies]
gcc = "0.3"
cc = "1"
6 changes: 4 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -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");
}

0 comments on commit c86ad3a

Please sign in to comment.