[clang][test] Fix -DBUILD_SHARED_LIBS build by adding depency on MC from clangTesting
authorAlex Bradbury <asb@igalia.com>
Fri, 17 Mar 2023 14:42:41 +0000 (14:42 +0000)
committerAlex Bradbury <asb@igalia.com>
Fri, 17 Mar 2023 14:45:48 +0000 (14:45 +0000)
Commit 34de7da6246cdfa6ff6f3d3c514583cddc0a10ec (D143436) introduced a
dependency on the TargetRegistry in `getAnyTargetForTesting`. This is
part of MC, which wasn't listed in clang/lib/Testing/CMakeLists.txt.
This broke the -DBUILD_SHARED_LIBS=True builds.

clang/lib/Testing/CMakeLists.txt

index 49b6787..4a2400d 100644 (file)
@@ -11,6 +11,7 @@ add_llvm_library(clangTesting
   BUILDTREE_ONLY
 
   LINK_COMPONENTS
+  MC
   Support
   )