[Lldb-commits] [lldb] [LLDB] Compile API tests with exceptions enabled on Windows (PR #148691)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 14 11:18:47 PDT 2025
JDevlieghere wrote:
> On other platforms, exceptions are enabled as well.
I don't believe that's accurate. By default, LLVM builds without exceptions. There's `LLVM_ENABLE_EH` to override that behavior [1]:
> LLVM_ENABLE_EH:BOOL
> Build LLVM with exception-handling support. This is necessary if you wish to link against LLVM libraries and make use of C++ exceptions in your own code that need to propagate through LLVM code. Defaults to OFF.
The unit tests should match the compilation mode. If a test requires exceptions, then maybe it should be an API tests where the inferior is compiled with exceptions. LLDB should certainly work without them.
[1] https://llvm.org/docs/CMake.html
https://github.com/llvm/llvm-project/pull/148691
More information about the lldb-commits
mailing list