Skip to content

Commit

Permalink
Switch from crate gcc to cc
Browse files Browse the repository at this point in the history
Apparently the former is now deprecated and the use of `cc` is
recommended now.
  • Loading branch information
brandur committed Jan 19, 2019
1 parent 456f0b5 commit f13375e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -16,4 +16,4 @@ libc = "0.2.0"
time = "0.1"

[build-dependencies]
gcc = "0.3"
cc = "1.0.28"
6 changes: 3 additions & 3 deletions build.rs
@@ -1,4 +1,4 @@
extern crate gcc;
extern crate cc;

fn main() {
// Build a Redis pseudo-library so that we have symbols that we can link
Expand All @@ -7,9 +7,9 @@ fn main() {
// include/redismodule.h is just vendored in from the Redis project and
// src/redismodule.c is just a stub that includes it and plays a few other
// tricks that we need to complete the build.
gcc::Build::new()
cc::Build::new()
.file("src/redismodule.c")
.include("include/")
.compile("libredismodule.a");
// The GCC module emits `rustc-link-lib=static=redismodule` for us.
// The cc module emits `rustc-link-lib=static=redismodule` for us.
}

0 comments on commit f13375e

Please sign in to comment.