[libcxx][libcxxabi] CMAKE_REQUIRED_FLAGS is a string, not a list
authorNehal J Wani <nehaljw.kkd1@gmail.com>
Thu, 16 Sep 2021 16:23:53 +0000 (18:23 +0200)
committerMark de Wever <koraq@xs4all.nl>
Thu, 16 Sep 2021 16:26:29 +0000 (18:26 +0200)
commit1613ab8a4a3e6f8ab74fadd7e9a2dfe2219e3b43
tree07d55e815d0602326e1a9c706410562e09716611
parent003fed8269b3f6d2b1618b670fc73d28972999e4
[libcxx][libcxxabi] CMAKE_REQUIRED_FLAGS is a string, not a list

When `libcxx` or `libcxxabi` is built with `-DLLVM_USE_SANITIZER=MemoryWithOrigins`
**and** `-DLIBCXX[ABI]_USE_COMPILER_RT=ON`, all of the `LIBCXX[ABI]_SUPPORTS_*_FLAG`
checks fail, since the value of `CMAKE_REQUIRED_FLAGS` is not set correctly.

Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=51774

Reviewed By: #libc, #libc_abi, compnerd, ldionne

Differential Revision: https://reviews.llvm.org/D109342
libcxx/cmake/config-ix.cmake
libcxxabi/cmake/config-ix.cmake