Skip to content

Commit c86ad3a

Browse files
committed
Switch to cc builds
1 parent 5071216 commit c86ad3a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "objc_exception"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
authors = ["Steven Sheldon"]
55

66
description = "Rust interface for Objective-C's throw and try/catch statements."
@@ -14,4 +14,4 @@ exclude = [".gitignore"]
1414
build = "build.rs"
1515

1616
[build-dependencies]
17-
gcc = "0.3"
17+
cc = "1"

build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
extern crate gcc;
1+
extern crate cc;
22

33
fn main() {
4-
gcc::compile_library("libexception.a", &["extern/exception.m"]);
4+
cc::Build::new()
5+
.file("extern/exception.m")
6+
.compile("libexception.a");
57
}

0 commit comments

Comments
 (0)