From 12d84cc0096c60573b8c0d7f14da8fa904e326b6 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 2 Sep 2017 10:54:43 +0200 Subject: update gcc crate Use gcc::Build rather than deprecated gcc::Config. Fixes #43973 --- src/liballoc_jemalloc/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/liballoc_jemalloc') diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs index c9bea2ecf5e..1864df4477a 100644 --- a/src/liballoc_jemalloc/build.rs +++ b/src/liballoc_jemalloc/build.rs @@ -63,7 +63,7 @@ fn main() { _ => return, }; - let compiler = gcc::Config::new().get_compiler(); + let compiler = gcc::Build::new().get_compiler(); // only msvc returns None for ar so unwrap is okay let ar = build_helper::cc2ar(compiler.path(), &target).unwrap(); let cflags = compiler.args() @@ -150,7 +150,7 @@ fn main() { // sure the symbols are available. if target.contains("androideabi") { println!("cargo:rerun-if-changed=pthread_atfork_dummy.c"); - gcc::Config::new() + gcc::Build::new() .flag("-fvisibility=hidden") .file("pthread_atfork_dummy.c") .compile("libpthread_atfork_dummy.a"); -- cgit 1.4.1-3-g733a5