about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2022-01-27 16:53:17 -0800
committerEric Huss <eric@huss.org>2022-01-27 16:53:17 -0800
commite1eff1b0e89bf2350dcf4d7933f1984f2c37c9c4 (patch)
tree621b20c36e43fddc9fc121beaabb245c1c5f5d1a /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent21b4a9cfdcbb1e76f4b36b5c3cfd64d627285093 (diff)
downloadrust-e1eff1b0e89bf2350dcf4d7933f1984f2c37c9c4.tar.gz
rust-e1eff1b0e89bf2350dcf4d7933f1984f2c37c9c4.zip
Windows: Disable LLVM crash dialog boxes.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index dcd6327c92f..d871290744f 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -76,6 +76,10 @@ extern "C" void LLVMRustInstallFatalErrorHandler() {
   install_fatal_error_handler(FatalErrorHandler);
 }
 
+extern "C" void LLVMRustDisableSystemDialogsOnCrash() {
+  sys::DisableSystemDialogsOnCrash();
+}
+
 extern "C" char *LLVMRustGetLastError(void) {
   char *Ret = LastError;
   LastError = nullptr;