diff options
Diffstat (limited to 'lldb/test/make/uncaught_exception.h')
-rw-r--r-- | lldb/test/make/uncaught_exception.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/test/make/uncaught_exception.h b/lldb/test/make/uncaught_exception.h new file mode 100644 index 00000000000..2d5d964e992 --- /dev/null +++ b/lldb/test/make/uncaught_exception.h @@ -0,0 +1,5 @@ +// MSVC header files have compilation issues when compiling with exceptions disabled. Notably, +// this function is compiled out when _HAS_EXCEPTIONS=0, but this function is called from another +// place even when _HAS_EXCEPTIONS=0. So we define a dummy implementation as a workaround and +// force include this header file. +static void *__uncaught_exception() { return nullptr; } |