[clang] 482d22d - [clang][test] Fix -DBUILD_SHARED_LIBS build by adding depency on MC from clangTesting
Alex Bradbury via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 17 07:46:16 PDT 2023
Author: Alex Bradbury
Date: 2023-03-17T14:45:48Z
New Revision: 482d22d05a4a30a4f8594273bd359f7d311c9d4c
URL: https://github.com/llvm/llvm-project/commit/482d22d05a4a30a4f8594273bd359f7d311c9d4c
DIFF: https://github.com/llvm/llvm-project/commit/482d22d05a4a30a4f8594273bd359f7d311c9d4c.diff
LOG: [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.
Added:
Modified:
clang/lib/Testing/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/lib/Testing/CMakeLists.txt b/clang/lib/Testing/CMakeLists.txt
index 49b6787959bc1..4a2400d6a107a 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
)
More information about the cfe-commits
mailing list