summary refs log tree commit diff
path: root/src/bootstrap/native.rs
diff options
context:
space:
mode:
authorIan Douglas Scott <ian@iandouglasscott.com>2017-06-22 11:51:32 -0700
committerIan Douglas Scott <ian@iandouglasscott.com>2017-06-22 11:51:32 -0700
commitf98ffb5bc348d1b11f10ebd5f4c5e2fe2813e167 (patch)
treecfc7e212079d0b2cf681ff3ae768cad177ad58b9 /src/bootstrap/native.rs
parent526afcb0a341c6036c069e113ebecf574c861c9f (diff)
downloadrust-f98ffb5bc348d1b11f10ebd5f4c5e2fe2813e167.tar.gz
rust-f98ffb5bc348d1b11f10ebd5f4c5e2fe2813e167.zip
Make Build.cxx() return a Result instead of panicking
Diffstat (limited to 'src/bootstrap/native.rs')
-rw-r--r--src/bootstrap/native.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index a23be37b15e..f150df6cdcd 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -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") &&