From 02ea9e5f540c61cad3cc26ffaba1bbaee657862d Mon Sep 17 00:00:00 2001 From: est31 Date: Thu, 7 Sep 2017 07:49:34 +0200 Subject: [PATCH] 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. --- Cargo.toml | 2 +- build.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 070d8f8..d741990 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ rand = { version = "0.3.15", optional = true } [build-dependencies.gcc] optional = true -version = "0.3.36" +version = "0.3.53" [features] c = ["gcc"] diff --git a/build.rs b/build.rs index 25cc520..6d4e274 100644 --- a/build.rs +++ b/build.rs @@ -4008,7 +4008,9 @@ mod c { let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap(); let target_vendor = env::var("CARGO_CFG_TARGET_VENDOR").unwrap(); - let cfg = &mut gcc::Config::new(); + let cfg = &mut gcc::Build::new(); + + cfg.warnings(false); if target_env == "msvc" { // Don't pull in extra libraries on MSVC