One can still use the LLVM variables to control this: LLVM_ENABLE_EH, LLVM_ENABLE_RTTI. It's not
clear to me why one would want to control these at lldb level and it's generally not even a good
idea to compile parts of the same binary with different values of these flags.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Zachary, Todd, you added these in D3929. I know it's a long time, but do you recall what was the original motivation for that?
In light of the issue in D20671, I've experimenting with compiling lldb with exceptions enabled, and this code here is interfering with the standard llvm logic for enabling them (LLVM_ENABLE_EH). Enabling this should not make any difference in the common case, as llvm already adds one set of exception-disabling flags if you don't specify the flag I mentioned (llvm/cmake/modules/AddLLVM.cmake).
So, unless we know of a concrete use case where this is needed, I think we should remove it.
This looks fine to me. ( D20671 also looked fine, looks like I missed looking at that yesterday).
Since Zachary initially wanted this on Windows, I suspect he needs to verify that he can still achieve the same result.