[clang] Fix linking to LLVMTestingAnnotations in standalone build
authorMichał Górny <mgorny@gentoo.org>
Tue, 24 Jan 2023 11:36:09 +0000 (12:36 +0100)
committerMichał Górny <mgorny@gentoo.org>
Tue, 24 Jan 2023 12:21:24 +0000 (13:21 +0100)
commit0f8b995b63620c3eb57610f958f66691d38d7185
treeffde894d8b2266fa7e61d9c960aa792a0a331b7b
parent5265adc73721963d3bf605a7ad5eab6a7e0850b8
[clang] Fix linking to LLVMTestingAnnotations in standalone build

The LLVMTestingAnnotations library that is now used by unittests
is not installed as part of LLVM.  In order to make it possible to build
unittests when performing the standalone build of clang, build
the library from LLVM sources locally.  This mirrors the existing logic
for LLVMTestingSupport.

Differential Revision: https://reviews.llvm.org/D142449
clang/unittests/CMakeLists.txt