diff options
| author | Ian Douglas Scott <ian@iandouglasscott.com> | 2017-06-22 11:51:32 -0700 |
|---|---|---|
| committer | Ian Douglas Scott <ian@iandouglasscott.com> | 2017-06-22 11:51:32 -0700 |
| commit | f98ffb5bc348d1b11f10ebd5f4c5e2fe2813e167 (patch) | |
| tree | cfc7e212079d0b2cf681ff3ae768cad177ad58b9 /src/bootstrap/sanity.rs | |
| parent | 526afcb0a341c6036c069e113ebecf574c861c9f (diff) | |
| download | rust-f98ffb5bc348d1b11f10ebd5f4c5e2fe2813e167.tar.gz rust-f98ffb5bc348d1b11f10ebd5f4c5e2fe2813e167.zip | |
Make Build.cxx() return a Result instead of panicking
Diffstat (limited to 'src/bootstrap/sanity.rs')
| -rw-r--r-- | src/bootstrap/sanity.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs index 5ccd131b77a..46d047bb015 100644 --- a/src/bootstrap/sanity.rs +++ b/src/bootstrap/sanity.rs @@ -139,7 +139,7 @@ pub fn check(build: &mut Build) { } } for host in build.config.host.iter() { - need_cmd(build.cxx(host).as_ref()); + need_cmd(build.cxx(host).unwrap().as_ref()); } // The msvc hosts don't use jemalloc, turn it off globally to |
