From 482d22d05a4a30a4f8594273bd359f7d311c9d4c Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Fri, 17 Mar 2023 14:42:41 +0000 Subject: [PATCH] [clang][test] Fix -DBUILD_SHARED_LIBS build by adding depency on MC from clangTesting 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Testing/CMakeLists.txt b/clang/lib/Testing/CMakeLists.txt index 49b6787..4a2400d 100644 --- a/clang/lib/Testing/CMakeLists.txt +++ b/clang/lib/Testing/CMakeLists.txt @@ -11,6 +11,7 @@ add_llvm_library(clangTesting BUILDTREE_ONLY LINK_COMPONENTS + MC Support ) -- 2.7.4