[NFCI] Clean up exceptions related CMake and Lit options in libc++abi and libunwind
authorLouis Dionne <ldionne@apple.com>
Tue, 9 Jun 2020 19:14:13 +0000 (15:14 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 9 Jun 2020 19:34:29 +0000 (15:34 -0400)
commit0e04342ae0399876f3488464d12f5a4da5085456
tree1c43df438057e45b1ba7830bef98741d9582e8f7
parentf71a3b54f0c5c300440c5ce21c76b5f7f41fc626
[NFCI] Clean up exceptions related CMake and Lit options in libc++abi and libunwind

First, libc++abi doesn't need to add the no-exceptions Lit feature itself,
since that is already done in the config.py for libc++, which it reuses.
Specifically, config.enable_exceptions is set based on @LIBCXXABI_ENABLE_EXCEPTIONS@
in libc++abi's lit.cfg.in, and libc++'s config.py handles that correctly.

Secondly, libunwind's LIBUNWIND_ENABLE_EXCEPTIONS is never set (it's
probably a remnant of copy-pasting code between the runtime libraries),
so the library is always built with exceptions disabled (which makes
sense since it implements the runtime support for exceptions).
Conversely, the test suite is always run with exceptions enabled
(not sure why), but that is preserved by the default behavior of
libc++'s config.py.
libcxxabi/test/libcxxabi/test/config.py
libunwind/test/CMakeLists.txt
libunwind/test/libunwind/test/config.py
libunwind/test/lit.cfg
libunwind/test/lit.site.cfg.in