Make Build.cxx() return a Result instead of panicking

This commit is contained in:
Ian Douglas Scott 2017-06-22 11:51:32 -07:00
parent 526afcb0a3
commit f98ffb5bc3
No known key found for this signature in database
GPG key ID: 4924E10E199B5959
5 changed files with 14 additions and 11 deletions

View file

@ -155,7 +155,7 @@ pub fn llvm(build: &Build, target: &str) {
}
let cc = build.cc(target);
let cxx = build.cxx(target);
let cxx = build.cxx(target).unwrap();
// Handle msvc + ninja + ccache specially (this is what the bots use)
if target.contains("msvc") &&