Skip to content

Commit 789e8c1

Browse files
authored
Merge pull request #196 from alexcrichton/cc
Update to the `cc` dependency
2 parents 67e0908 + 006f173 commit 789e8c1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ version = "0.1.0"
88
cast = { version = "0.2.2", features = ["x128"], optional = true }
99
rand = { version = "0.3.15", optional = true }
1010

11-
[build-dependencies.gcc]
11+
[build-dependencies.cc]
1212
optional = true
13-
version = "0.3.53"
13+
version = "1.0"
1414

1515
[features]
16-
c = ["gcc"]
16+
c = ["cc"]
1717
compiler-builtins = []
1818
default = ["compiler-builtins"]
1919
mem = []

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3957,7 +3957,7 @@ macro_rules! panic {
39573957

39583958
#[cfg(feature = "c")]
39593959
mod c {
3960-
extern crate gcc;
3960+
extern crate cc;
39613961

39623962
use std::collections::BTreeMap;
39633963
use std::env;
@@ -4008,7 +4008,7 @@ mod c {
40084008
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
40094009
let target_vendor = env::var("CARGO_CFG_TARGET_VENDOR").unwrap();
40104010

4011-
let cfg = &mut gcc::Build::new();
4011+
let cfg = &mut cc::Build::new();
40124012

40134013
cfg.warnings(false);
40144014

tests/floattidf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
not(any(target_env = "gnu", target_env = "musl")),
55
target_os = "linux",
66
test), no_std)]
7+
#![cfg(not(target_arch = "mips"))] // FIXME(#168)
78

89
include!(concat!(env!("OUT_DIR"), "/floattidf.rs"));

0 commit comments

Comments
 (0)