Update to the cc crate

This is the name the `gcc` crate has moved to
This commit is contained in:
Alex Crichton 2017-09-22 21:34:27 -07:00
parent 041d3550f6
commit 7694ca419b
22 changed files with 66 additions and 57 deletions

View file

@ -18,4 +18,4 @@ html-diff = "0.0.4"
[build-dependencies]
build_helper = { path = "../build_helper" }
gcc = "0.3.50"
cc = "1.0"

View file

@ -9,12 +9,12 @@
// except according to those terms.
extern crate build_helper;
extern crate gcc;
extern crate cc;
fn main() {
let src_dir = std::path::Path::new("../rt/hoedown/src");
build_helper::rerun_if_changed_anything_in_dir(src_dir);
let mut cfg = gcc::Build::new();
let mut cfg = cc::Build::new();
cfg.file("../rt/hoedown/src/autolink.c")
.file("../rt/hoedown/src/buffer.c")
.file("../rt/hoedown/src/document.c")