From: Alex Bradbury Date: Fri, 17 Mar 2023 14:42:41 +0000 (+0000) Subject: [clang][test] Fix -DBUILD_SHARED_LIBS build by adding depency on MC from clangTesting X-Git-Tag: upstream/17.0.6~14454 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=482d22d05a4a30a4f8594273bd359f7d311c9d4c;p=platform%2Fupstream%2Fllvm.git [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. --- 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 )