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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to