From 465ba28996b25e4531b9d1a2e9ec72d68efb4326 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. --- library/compiler-builtins/Cargo.toml | 2 +- library/compiler-builtins/build.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/library/compiler-builtins/Cargo.toml b/library/compiler-builtins/Cargo.toml index 070d8f8c7a0f..d7419902d7aa 100644 --- a/library/compiler-builtins/Cargo.toml +++ b/library/compiler-builtins/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/library/compiler-builtins/build.rs b/library/compiler-builtins/build.rs index 25cc5204d2e7..6d4e274fadc0 100644 --- a/library/compiler-builtins/build.rs +++ b/library/compiler-builtins/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