[libcxxabi][cmake] Allow building without libcxx again
authorJohn Ericson <John.Ericson@Obsidian.Systems>
Sat, 20 Aug 2022 15:04:41 +0000 (11:04 -0400)
committerJohn Ericson <John.Ericson@Obsidian.Systems>
Sun, 21 Aug 2022 12:22:57 +0000 (08:22 -0400)
commite6a0800532bb409f6d1c62f3698bdd6994a877dc
tree359bf07db00a9fa1a126a0c3458cf4782a1c692a
parent176db3b3ab25ff8a9b2405f50ef5a8bd9304a6d5
[libcxxabi][cmake] Allow building without libcxx again

This allows `-DLLVM_ENABLE_RUNTIMES=libcxxabi` to work.

This functionality was removed in D125561 (among other such removals) as
dead code, because it was only available as part of the standalone build
before.

The functionality as added back as it was, except `target_include_directories` is used instead of the cruder `target_compile_options` (with an MSVC vs not MSVC conditional split). That is just wholly better.

Reviewed By: phosek, #libc_abi

Differential Revision: https://reviews.llvm.org/D132298
libcxxabi/CMakeLists.txt
libcxxabi/test/CMakeLists.txt