Use cc 1.0, which replaces the old gcc crate.

This commit is contained in:
Brian Smith 2017-09-19 18:31:26 -10:00
parent 923da0dea6
commit 300f0d6ff5
3 changed files with 5 additions and 5 deletions

View File

@ -287,7 +287,7 @@ lazy_static = "0.2.8"
# we do not use the gcc parallel feature because we do the
# parallelism ourself. This gives us a much higher level of
# control about what should be parallised in which way
gcc = "0.3.53"
cc = "1.0"
rayon = "0.8.2"
[features]

View File

@ -37,7 +37,7 @@
warnings,
)]
extern crate gcc;
extern crate cc;
extern crate rayon;
// In the `pregenerate_asm_main()` case we don't want to access (Cargo)
@ -473,7 +473,7 @@ fn build_library(target: &Target, out_dir: &Path, lib_name: &str,
.with_max_len(1)
.map(|f| Path::new(f))
.any(|p| need_run(&p, &lib_path, includes_modified)) {
let mut c = gcc::Build::new();
let mut c = cc::Build::new();
for f in LD_FLAGS {
let _ = c.flag(&f);
@ -534,7 +534,7 @@ fn obj_path(out_dir: &Path, src: &Path, obj_ext: &str) -> PathBuf {
fn cc(file: &Path, ext: &str, target: &Target, warnings_are_errors: bool,
out_dir: &Path)
-> Command {
let mut c = gcc::Build::new();
let mut c = cc::Build::new();
let _ = c.include("include");
match ext {
"c" => {

View File

@ -12,5 +12,5 @@ path = "../build.rs"
# we do not use the gcc parallel feature because we do the
# parallelism ourself. This gives us a much higher level of
# control about what should be parallised in which way
gcc = "0.3.53"
cc = "1.0"
rayon = "0.8.2"