From 300f0d6ff53e88fe7426f68a2fdc51c3a46253fd Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Tue, 19 Sep 2017 18:31:26 -1000 Subject: [PATCH] Use cc 1.0, which replaces the old gcc crate. --- Cargo.toml | 2 +- build.rs | 6 +++--- pregenerate_asm/Cargo.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 56a041580..4d7365bb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/build.rs b/build.rs index 402476656..d1d859d92 100644 --- a/build.rs +++ b/build.rs @@ -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" => { diff --git a/pregenerate_asm/Cargo.toml b/pregenerate_asm/Cargo.toml index 34557a9ae..27a465940 100644 --- a/pregenerate_asm/Cargo.toml +++ b/pregenerate_asm/Cargo.toml @@ -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"