File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -987,6 +987,7 @@ pub type SelfProfileAfterPassCallback = unsafe extern "C" fn(*mut c_void);
987
987
988
988
extern "C" {
989
989
pub fn LLVMRustInstallFatalErrorHandler ( ) ;
990
+ pub fn LLVMRustDisableSystemDialogsOnCrash ( ) ;
990
991
991
992
// Create and destroy contexts.
992
993
pub fn LLVMRustContextCreate ( shouldDiscardNames : bool ) -> & ' static mut Context ;
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ unsafe fn configure_llvm(sess: &Session) {
46
46
let mut llvm_args = Vec :: with_capacity ( n_args + 1 ) ;
47
47
48
48
llvm:: LLVMRustInstallFatalErrorHandler ( ) ;
49
+ llvm:: LLVMRustDisableSystemDialogsOnCrash ( ) ;
49
50
50
51
fn llvm_arg_to_arg_name ( full_arg : & str ) -> & str {
51
52
full_arg. trim ( ) . split ( |c : char | c == '=' || c. is_whitespace ( ) ) . next ( ) . unwrap_or ( "" )
Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ extern "C" void LLVMRustInstallFatalErrorHandler() {
76
76
install_fatal_error_handler (FatalErrorHandler);
77
77
}
78
78
79
+ extern " C" void LLVMRustDisableSystemDialogsOnCrash () {
80
+ sys::DisableSystemDialogsOnCrash ();
81
+ }
82
+
79
83
extern " C" char *LLVMRustGetLastError (void ) {
80
84
char *Ret = LastError;
81
85
LastError = nullptr ;
You can’t perform that action at this time.
0 commit comments