From 19b8481662deddc9e1f511e4c7c633d37dafecda Mon Sep 17 00:00:00 2001 From: Aleksey Ivanov Date: Tue, 26 Sep 2017 15:30:06 +0300 Subject: [PATCH] Use cc crate instead of gcc --- rust-to-c/Cargo.toml | 2 +- rust-to-c/build.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rust-to-c/Cargo.toml b/rust-to-c/Cargo.toml index aedebe0..90c80a0 100644 --- a/rust-to-c/Cargo.toml +++ b/rust-to-c/Cargo.toml @@ -8,4 +8,4 @@ build = "build.rs" libc = "0.1" [build-dependencies] -gcc = "0.3" +cc = "1.0" diff --git a/rust-to-c/build.rs b/rust-to-c/build.rs index ec8cc94..d0f726f 100644 --- a/rust-to-c/build.rs +++ b/rust-to-c/build.rs @@ -1,5 +1,7 @@ -extern crate gcc; +extern crate cc; fn main() { - gcc::Config::new().file("src/double.c").compile("libdouble.a"); + cc::Build::new() + .file("src/double.c") + .compile("libdouble.a"); }