Skip to content

Commit 02ea9e5

Browse files
committed
Update the gcc crate to 0.3.53 and disable compilation warnings
They are inside the compiler-rt submodule, about which we don't have direct control over.
1 parent 94c4c1c commit 02ea9e5

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)