about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-06-17 00:12:04 +0100
committerGitHub <noreply@github.com>2016-06-17 00:12:04 +0100
commit51b20bcbf4c8990d31b8acbc5071db7eaecac560 (patch)
tree8baceb4a35adc4ded47c2b73cad8f4f945b19d48 /src/libstd
parent986bb53a7bfbcfdfd33996d8ef0f4fd983e7bdba (diff)
parente0992df35f7827fe09b1a54558e396511bcba12a (diff)
downloadrust-51b20bcbf4c8990d31b8acbc5071db7eaecac560.tar.gz
rust-51b20bcbf4c8990d31b8acbc5071db7eaecac560.zip
Rollup merge of #34302 - retep998:🐇-sanity-is-overrated-🐇, r=alexcrichton
Fix issue where rustbuild expected msvc to have ar

I made `cc2ar` return an `Option`.

r? @alexcrichton
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/build.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/build.rs b/src/libstd/build.rs
index ff9dacbb679..9c408366f8b 100644
--- a/src/libstd/build.rs
+++ b/src/libstd/build.rs
@@ -80,7 +80,8 @@ fn build_libbacktrace(host: &str, target: &str) {
     }
 
     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())
                          .collect::<Vec<_>>().join(" ");
     run(Command::new("sh")