update gcc crate

Use gcc::Build rather than deprecated gcc::Config.
Fixes #43973
This commit is contained in:
Ralf Jung
2017-09-02 10:54:43 +02:00
parent 204c0a47e7
commit 12d84cc009
9 changed files with 29 additions and 29 deletions

View File

@@ -77,7 +77,7 @@ fn main() {
fn build_libbacktrace(host: &str, target: &str) -> Result<(), ()> {
let native = native_lib_boilerplate("libbacktrace", "libbacktrace", "backtrace", ".libs")?;
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 mut cflags = compiler.args().iter().map(|s| s.to_str().unwrap())