From e0992df35f7827fe09b1a54558e396511bcba12a Mon Sep 17 00:00:00 2001 From: Peter Atashian Date: Thu, 16 Jun 2016 08:38:06 -0400 Subject: Fix issue where rustbuild expected msvc to have ar Signed-off-by: Peter Atashian --- src/liballoc_jemalloc/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/liballoc_jemalloc') diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs index e43b9a9df1b..d1b3583d256 100644 --- a/src/liballoc_jemalloc/build.rs +++ b/src/liballoc_jemalloc/build.rs @@ -43,7 +43,8 @@ fn main() { } let compiler = gcc::Config::new().get_compiler(); - let ar = build_helper::cc2ar(compiler.path(), &target); + // only msvc returns None for ar so unwrap is okay + let ar = build_helper::cc2ar(compiler.path(), &target).unwrap(); let cflags = compiler.args() .iter() .map(|s| s.to_str().unwrap()) -- cgit 1.4.1-3-g733a5