Skip to content

Commit 38ffaf9

Browse files
committed
Auto merge of #187 - est31:master, r=alexcrichton
Update the gcc crate to 0.3.53 and disable compilation warnings The update is needed because you'd otherwise get a deprecation warning about `Config` being deprecated, as rust-lang/rust has updated the gcc crate. The compilation warnings are inside the compiler-rt submodule, about which we don't have direct control over, so we disable them.
2 parents 94c4c1c + 02ea9e5 commit 38ffaf9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ rand = { version = "0.3.15", optional = true }
1010

1111
[build-dependencies.gcc]
1212
optional = true
13-
version = "0.3.36"
13+
version = "0.3.53"
1414

1515
[features]
1616
c = ["gcc"]

build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -4008,7 +4008,9 @@ 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::Config::new();
4011+
let cfg = &mut gcc::Build::new();
4012+
4013+
cfg.warnings(false);
40124014

40134015
if target_env == "msvc" {
40144016
// Don't pull in extra libraries on MSVC

0 commit comments

Comments
 (0)