1
Fork 0

exit with status code 101 on fatal LLVM error

Fixes #54992.
This commit is contained in:
Andy Russell 2018-10-12 15:35:55 -04:00
parent e9e27e6a62
commit 00e1f5b8df
No known key found for this signature in database
GPG key ID: BE2221033EDBC374
3 changed files with 28 additions and 0 deletions

View file

@ -56,6 +56,8 @@ unsafe fn configure_llvm(sess: &Session) {
let mut llvm_c_strs = Vec::with_capacity(n_args + 1);
let mut llvm_args = Vec::with_capacity(n_args + 1);
llvm::LLVMRustInstallFatalErrorHandler();
{
let mut add = |arg: &str| {
let s = CString::new(arg).unwrap();