[compiler-rt][CMake] Use linker semantics for unwinder and C++ library
authorPetr Hosek <phosek@google.com>
Mon, 11 Jul 2022 08:18:28 +0000 (08:18 +0000)
committerPetr Hosek <phosek@google.com>
Thu, 14 Jul 2022 21:12:36 +0000 (21:12 +0000)
commit2da550140aa98cf6a3e96417c87f1e89e3a26047
tree6e28c98ec3740c923b4a736208b9ed8d66f8a675
parent17a4427e8292ea648f20d5cec788de383bc64b9a
[compiler-rt][CMake] Use linker semantics for unwinder and C++ library

Try the shared library first, and if it doesn't exist fallback onto
the static one. When the static library is requested, skip the shared
library.

Differential Revision: https://reviews.llvm.org/D129470
compiler-rt/CMakeLists.txt