Skip to content

Commit

Permalink
Merge pull request #2 from kpcyrd/cc
Browse files Browse the repository at this point in the history
Replace gcc with cc crate
  • Loading branch information
mneumann committed Sep 27, 2021
2 parents 52512bf + cf4098e commit a05e5c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cargo.lock
/target/
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ include = ["Cargo.toml", "LICENSE", "README.md", "build.rs", "src/lib.rs", "src/
libc = "0.2"

[build-dependencies]
gcc = "0.3"
cc = "1.0"
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("liberrno.a", &["src/errno.c"]);
cc::Build::new()
.file("src/errno.c")
.compile("liberrno.a");
}

0 comments on commit a05e5c9

Please sign in to comment.