diff options
author | Joonas Niilola <juippis@gentoo.org> | 2020-11-15 15:51:06 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-11-15 17:31:18 +0200 |
commit | 6047192ea65771a17145bde529b40ed637da4370 (patch) | |
tree | 543b98610a515ad80f516307122d0e95f63cba69 /sys-devel/clang | |
parent | sys-fs/dislocker: fix SizeViolation issue (diff) | |
download | gentoo-6047192ea65771a17145bde529b40ed637da4370.tar.gz gentoo-6047192ea65771a17145bde529b40ed637da4370.tar.bz2 gentoo-6047192ea65771a17145bde529b40ed637da4370.zip |
sys-devel/clang: fix SizeViolation issue
Closes: https://bugs.gentoo.org/748219
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sys-devel/clang')
-rw-r--r-- | sys-devel/clang/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/clang/clang-10.0.1.ebuild | 3 | ||||
-rw-r--r-- | sys-devel/clang/files/10.0.1/0003-clang-tools-extra-Prevent-linking-to-duplicate-.a-li.patch | 788 |
3 files changed, 3 insertions, 789 deletions
diff --git a/sys-devel/clang/Manifest b/sys-devel/clang/Manifest index 723fd66fce7c..bdf2fe877136 100644 --- a/sys-devel/clang/Manifest +++ b/sys-devel/clang/Manifest @@ -1,3 +1,4 @@ +DIST 10.0.1-0003-clang-tools-extra-Prevent-linking-to-duplicate-.a-li.patch 23184 BLAKE2B 42bfc9401bceea6627703f7611aafe4708e4e745e47e8caa01fb8c7126524ef65e4c135cfd0541bc663bfc52fa8c47342f7f8de462abe283ec353b068d2e3532 SHA512 9561c9ab6dc62257b7626f7898afa667401522817ec57137641f8687549b0b8e531659a5afd5226dd7619126cc67f68235f628cbe639345277415343c4ca3650 DIST llvm-10.0.0-manpages.tar.bz2 177084 BLAKE2B 16b38e60fce4d67ac602b317ea7089c095d46b9426ba9940041e65d7ab493f85dba2e94a4aeba7b7c52042f23825efcfcd32a57d306aaf05b4307061a5a8a368 SHA512 eac57ad218ff4c2b5a74e453a29192ee6e911152b668d8a9420b59529d5cae8aa241f2485b4a7ea304acbecc7ecb27391a77552080726432c2b7b59b95fc0bd7 DIST llvm-10.0.1-manpages.tar.bz2 180157 BLAKE2B ddf5951c8f5a2a8a80726fd713e6c818c852851a2261e904b484afdb67ac55f2ce10976ca2ca5d81fe2bf4806a72cc7b59f4068741306491a4f39065ca8fb56e SHA512 d3c2470dbd0f3143d64b380f7534ebcacdcf4bc4f140a6014283150007fe615ebd86247cf13b2432165a681614849e8eaab69a8d077f7a51e4e040e28ed33ebc DIST llvm-11.0.0-manpages.tar.bz2 179592 BLAKE2B d03dff5e7426f4c648d6112dee0fa7a91edf41584290c94c3f738fc65fa82fc6ef47b49c245fb0e741bdf267fc64534311194c476ece4b447649ba2250e61430 SHA512 1cf598f50c99a85a35b03398e4768cd1eafec9d602f788d401120adb91b3b59965216ed7102da26b7c2af7e1bbca4bca8f1d43bb687fcd8ed418e2f7076bdce4 diff --git a/sys-devel/clang/clang-10.0.1.ebuild b/sys-devel/clang/clang-10.0.1.ebuild index 699c9ae63189..42c03f5c3c62 100644 --- a/sys-devel/clang/clang-10.0.1.ebuild +++ b/sys-devel/clang/clang-10.0.1.ebuild @@ -9,6 +9,7 @@ inherit cmake llvm llvm.org multilib-minimal pax-utils \ DESCRIPTION="C language family frontend for LLVM" HOMEPAGE="https://llvm.org/" +SRC_URI+=" https://dev.gentoo.org/~juippis/distfiles/tmp/10.0.1-0003-clang-tools-extra-Prevent-linking-to-duplicate-.a-li.patch" LLVM_COMPONENTS=( clang clang-tools-extra ) LLVM_MANPAGES=pregenerated LLVM_TEST_COMPONENTS=( @@ -70,7 +71,7 @@ PDEPEND=" PATCHES=( # fix simultaneous linking to .a and dylib - "${FILESDIR}"/10.0.1/0003-clang-tools-extra-Prevent-linking-to-duplicate-.a-li.patch + "${DISTDIR}"/10.0.1-0003-clang-tools-extra-Prevent-linking-to-duplicate-.a-li.patch "${FILESDIR}"/10.0.1/0004-clang-Avoid-linking-c-index-test-to-duplicate-librar.patch ) diff --git a/sys-devel/clang/files/10.0.1/0003-clang-tools-extra-Prevent-linking-to-duplicate-.a-li.patch b/sys-devel/clang/files/10.0.1/0003-clang-tools-extra-Prevent-linking-to-duplicate-.a-li.patch deleted file mode 100644 index d01bd5d51e23..000000000000 --- a/sys-devel/clang/files/10.0.1/0003-clang-tools-extra-Prevent-linking-to-duplicate-.a-li.patch +++ /dev/null @@ -1,788 +0,0 @@ -From 248d706ca72666a203a24b84406be430ccf40558 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Tue, 16 Jun 2020 20:43:55 +0200 -Subject: [PATCH 3/4] [clang-tools-extra] Prevent linking to duplicate .a libs - and dylib - -Fix various tool libraries not to link to clang's .a libraries and dylib -simultaneously. This may cause breakage, in particular through -duplicate command-line option declarations. ---- - .../clang-apply-replacements/CMakeLists.txt | 4 +++- - .../clang-change-namespace/CMakeLists.txt | 4 +++- - clang-tools-extra/clang-doc/CMakeLists.txt | 4 +++- - .../clang-include-fixer/CMakeLists.txt | 6 +++++- - .../find-all-symbols/CMakeLists.txt | 4 +++- - clang-tools-extra/clang-move/CMakeLists.txt | 4 +++- - clang-tools-extra/clang-query/CMakeLists.txt | 4 +++- - .../clang-reorder-fields/CMakeLists.txt | 4 +++- - clang-tools-extra/clang-tidy/CMakeLists.txt | 7 +++++-- - clang-tools-extra/clang-tidy/abseil/CMakeLists.txt | 8 ++++++-- - .../clang-tidy/android/CMakeLists.txt | 8 ++++++-- - clang-tools-extra/clang-tidy/boost/CMakeLists.txt | 8 ++++++-- - .../clang-tidy/bugprone/CMakeLists.txt | 10 +++++++--- - clang-tools-extra/clang-tidy/cert/CMakeLists.txt | 12 ++++++++---- - .../clang-tidy/cppcoreguidelines/CMakeLists.txt | 14 +++++++++----- - clang-tools-extra/clang-tidy/darwin/CMakeLists.txt | 8 ++++++-- - .../clang-tidy/fuchsia/CMakeLists.txt | 10 +++++++--- - clang-tools-extra/clang-tidy/google/CMakeLists.txt | 10 +++++++--- - clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt | 14 +++++++++----- - .../clang-tidy/linuxkernel/CMakeLists.txt | 8 ++++++-- - clang-tools-extra/clang-tidy/llvm/CMakeLists.txt | 10 +++++++--- - clang-tools-extra/clang-tidy/misc/CMakeLists.txt | 8 ++++++-- - .../clang-tidy/modernize/CMakeLists.txt | 10 +++++++--- - clang-tools-extra/clang-tidy/mpi/CMakeLists.txt | 8 ++++++-- - clang-tools-extra/clang-tidy/objc/CMakeLists.txt | 8 ++++++-- - clang-tools-extra/clang-tidy/openmp/CMakeLists.txt | 8 ++++++-- - .../clang-tidy/performance/CMakeLists.txt | 8 ++++++-- - clang-tools-extra/clang-tidy/plugin/CMakeLists.txt | 8 ++++++-- - .../clang-tidy/portability/CMakeLists.txt | 8 ++++++-- - .../clang-tidy/readability/CMakeLists.txt | 8 ++++++-- - clang-tools-extra/clang-tidy/utils/CMakeLists.txt | 6 +++++- - clang-tools-extra/clang-tidy/zircon/CMakeLists.txt | 8 ++++++-- - clang-tools-extra/clangd/CMakeLists.txt | 11 +++++++---- - clang-tools-extra/clangd/unittests/CMakeLists.txt | 1 - - 34 files changed, 188 insertions(+), 73 deletions(-) - -diff --git a/clang-tools-extra/clang-apply-replacements/CMakeLists.txt b/clang-tools-extra/clang-apply-replacements/CMakeLists.txt -index 5bfdcb487e1..27383b488e4 100644 ---- a/clang-tools-extra/clang-apply-replacements/CMakeLists.txt -+++ b/clang-tools-extra/clang-apply-replacements/CMakeLists.txt -@@ -4,8 +4,10 @@ set(LLVM_LINK_COMPONENTS - - add_clang_library(clangApplyReplacements - lib/Tooling/ApplyReplacements.cpp -+) - -- LINK_LIBS -+clang_target_link_libraries(clangApplyReplacements -+ PRIVATE - clangAST - clangBasic - clangRewrite -diff --git a/clang-tools-extra/clang-change-namespace/CMakeLists.txt b/clang-tools-extra/clang-change-namespace/CMakeLists.txt -index 178306423eb..dccfd7c0673 100644 ---- a/clang-tools-extra/clang-change-namespace/CMakeLists.txt -+++ b/clang-tools-extra/clang-change-namespace/CMakeLists.txt -@@ -4,8 +4,10 @@ set(LLVM_LINK_COMPONENTS - - add_clang_library(clangChangeNamespace - ChangeNamespace.cpp -+) - -- LINK_LIBS -+clang_target_link_libraries(clangChangeNamespace -+ PRIVATE - clangAST - clangASTMatchers - clangBasic -diff --git a/clang-tools-extra/clang-doc/CMakeLists.txt b/clang-tools-extra/clang-doc/CMakeLists.txt -index c301ad5afac..6f303a67c9a 100644 ---- a/clang-tools-extra/clang-doc/CMakeLists.txt -+++ b/clang-tools-extra/clang-doc/CMakeLists.txt -@@ -14,8 +14,10 @@ add_clang_library(clangDoc - Representation.cpp - Serialize.cpp - YAMLGenerator.cpp -+) - -- LINK_LIBS -+clang_target_link_libraries(clangDoc -+ PRIVATE - clangAnalysis - clangAST - clangASTMatchers -diff --git a/clang-tools-extra/clang-include-fixer/CMakeLists.txt b/clang-tools-extra/clang-include-fixer/CMakeLists.txt -index f27f7403ea6..d8685cb2075 100644 ---- a/clang-tools-extra/clang-include-fixer/CMakeLists.txt -+++ b/clang-tools-extra/clang-include-fixer/CMakeLists.txt -@@ -11,6 +11,11 @@ add_clang_library(clangIncludeFixer - YamlSymbolIndex.cpp - - LINK_LIBS -+ findAllSymbols -+ ) -+ -+clang_target_link_libraries(clangIncludeFixer -+ PRIVATE - clangAST - clangBasic - clangFormat -@@ -21,7 +26,6 @@ add_clang_library(clangIncludeFixer - clangSerialization - clangTooling - clangToolingCore -- findAllSymbols - ) - - add_subdirectory(plugin) -diff --git a/clang-tools-extra/clang-include-fixer/find-all-symbols/CMakeLists.txt b/clang-tools-extra/clang-include-fixer/find-all-symbols/CMakeLists.txt -index c5fe19bfdbd..06a2324e918 100644 ---- a/clang-tools-extra/clang-include-fixer/find-all-symbols/CMakeLists.txt -+++ b/clang-tools-extra/clang-include-fixer/find-all-symbols/CMakeLists.txt -@@ -11,8 +11,10 @@ add_clang_library(findAllSymbols - PragmaCommentHandler.cpp - STLPostfixHeaderMap.cpp - SymbolInfo.cpp -+ ) - -- LINK_LIBS -+clang_target_link_libraries(findAllSymbols -+ PRIVATE - clangAST - clangASTMatchers - clangBasic -diff --git a/clang-tools-extra/clang-move/CMakeLists.txt b/clang-tools-extra/clang-move/CMakeLists.txt -index c63127ea325..9ea409932da 100644 ---- a/clang-tools-extra/clang-move/CMakeLists.txt -+++ b/clang-tools-extra/clang-move/CMakeLists.txt -@@ -5,8 +5,10 @@ set(LLVM_LINK_COMPONENTS - add_clang_library(clangMove - Move.cpp - HelperDeclRefGraph.cpp -+ ) - -- LINK_LIBS -+clang_target_link_libraries(clangMove -+ PRIVATE - clangAnalysis - clangAST - clangASTMatchers -diff --git a/clang-tools-extra/clang-query/CMakeLists.txt b/clang-tools-extra/clang-query/CMakeLists.txt -index d1d68d502e3..bc76bae9c0e 100644 ---- a/clang-tools-extra/clang-query/CMakeLists.txt -+++ b/clang-tools-extra/clang-query/CMakeLists.txt -@@ -6,8 +6,10 @@ set(LLVM_LINK_COMPONENTS - add_clang_library(clangQuery - Query.cpp - QueryParser.cpp -+ ) - -- LINK_LIBS -+clang_target_link_libraries(clangQuery -+ PRIVATE - clangAST - clangASTMatchers - clangBasic -diff --git a/clang-tools-extra/clang-reorder-fields/CMakeLists.txt b/clang-tools-extra/clang-reorder-fields/CMakeLists.txt -index 9c75d785cc9..e555fd5cdf0 100644 ---- a/clang-tools-extra/clang-reorder-fields/CMakeLists.txt -+++ b/clang-tools-extra/clang-reorder-fields/CMakeLists.txt -@@ -2,8 +2,10 @@ set(LLVM_LINK_COMPONENTS support) - - add_clang_library(clangReorderFields - ReorderFieldsAction.cpp -+) - -- LINK_LIBS -+clang_target_link_libraries(clangReorderFields -+ PRIVATE - clangAST - clangASTMatchers - clangBasic -diff --git a/clang-tools-extra/clang-tidy/CMakeLists.txt b/clang-tools-extra/clang-tidy/CMakeLists.txt -index 6dadb271771..329df19f331 100644 ---- a/clang-tools-extra/clang-tidy/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/CMakeLists.txt -@@ -14,8 +14,10 @@ add_clang_library(clangTidy - - DEPENDS - ClangSACheckers -+ ) - -- LINK_LIBS -+clang_target_link_libraries(clangTidy -+ PRIVATE - clangAnalysis - clangAST - clangASTMatchers -@@ -31,7 +33,8 @@ add_clang_library(clangTidy - ) - - if(CLANG_ENABLE_STATIC_ANALYZER) -- target_link_libraries(clangTidy PRIVATE -+ clang_target_link_libraries(clangTidy -+ PRIVATE - clangStaticAnalyzerCore - clangStaticAnalyzerFrontend - ) -diff --git a/clang-tools-extra/clang-tidy/abseil/CMakeLists.txt b/clang-tools-extra/clang-tidy/abseil/CMakeLists.txt -index 3f88da6233f..0f040e56a05 100644 ---- a/clang-tools-extra/clang-tidy/abseil/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/abseil/CMakeLists.txt -@@ -22,11 +22,15 @@ add_clang_library(clangTidyAbseilModule - UpgradeDurationConversionsCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyAbseilModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - clangTooling - ) -diff --git a/clang-tools-extra/clang-tidy/android/CMakeLists.txt b/clang-tools-extra/clang-tidy/android/CMakeLists.txt -index 9d04003d9bb..d29adc610c8 100644 ---- a/clang-tools-extra/clang-tidy/android/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/android/CMakeLists.txt -@@ -20,10 +20,14 @@ add_clang_library(clangTidyAndroidModule - ComparisonInTempFailureRetryCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyAndroidModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clang-tidy/boost/CMakeLists.txt b/clang-tools-extra/clang-tidy/boost/CMakeLists.txt -index 059f6e91eca..481a709600c 100644 ---- a/clang-tools-extra/clang-tidy/boost/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/boost/CMakeLists.txt -@@ -5,10 +5,14 @@ add_clang_library(clangTidyBoostModule - UseToStringCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyBoostModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt b/clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt -index 2cb28f4e8f1..d664f5eb875 100644 ---- a/clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt -@@ -52,13 +52,17 @@ add_clang_library(clangTidyBugproneModule - VirtualNearMissCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyCppCoreGuidelinesModule -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyBugproneModule -+ PRIVATE - clangAnalysis - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyCppCoreGuidelinesModule -- clangTidyUtils - clangTooling - ) -diff --git a/clang-tools-extra/clang-tidy/cert/CMakeLists.txt b/clang-tools-extra/clang-tidy/cert/CMakeLists.txt -index 66ea2a13acd..75a13349f2f 100644 ---- a/clang-tools-extra/clang-tidy/cert/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/cert/CMakeLists.txt -@@ -17,10 +17,6 @@ add_clang_library(clangTidyCERTModule - VariadicFunctionDefCheck.cpp - - LINK_LIBS -- clangAST -- clangASTMatchers -- clangBasic -- clangLex - clangTidy - clangTidyBugproneModule - clangTidyGoogleModule -@@ -29,3 +25,11 @@ add_clang_library(clangTidyCERTModule - clangTidyReadabilityModule - clangTidyUtils - ) -+ -+clang_target_link_libraries(clangTidyCERTModule -+ PRIVATE -+ clangAST -+ clangASTMatchers -+ clangBasic -+ clangLex -+ ) -diff --git a/clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt b/clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt -index 13c15bc9d22..e48bc1c8b1a 100644 ---- a/clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt -@@ -23,15 +23,19 @@ add_clang_library(clangTidyCppCoreGuidelinesModule - SpecialMemberFunctionsCheck.cpp - - LINK_LIBS -- clangAST -- clangASTMatchers -- clangBasic -- clangLex -- clangSerialization - clangTidy - clangTidyMiscModule - clangTidyModernizeModule - clangTidyReadabilityModule - clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyCppCoreGuidelinesModule -+ PRIVATE -+ clangAST -+ clangASTMatchers -+ clangBasic -+ clangLex -+ clangSerialization - clangTooling - ) -diff --git a/clang-tools-extra/clang-tidy/darwin/CMakeLists.txt b/clang-tools-extra/clang-tidy/darwin/CMakeLists.txt -index c650efb2a5f..feec79c12bf 100644 ---- a/clang-tools-extra/clang-tidy/darwin/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/darwin/CMakeLists.txt -@@ -6,11 +6,15 @@ add_clang_library(clangTidyDarwinModule - DispatchOnceNonstaticCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyDarwinModule -+ PRIVATE - clangAnalysis - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt b/clang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt -index 30b319e7e5a..0148b20f364 100644 ---- a/clang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt -@@ -12,11 +12,15 @@ add_clang_library(clangTidyFuchsiaModule - VirtualInheritanceCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyGoogleModule -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyFuchsiaModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyGoogleModule -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clang-tidy/google/CMakeLists.txt b/clang-tools-extra/clang-tidy/google/CMakeLists.txt -index 08368932da5..302561ba646 100644 ---- a/clang-tools-extra/clang-tidy/google/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/google/CMakeLists.txt -@@ -21,11 +21,15 @@ add_clang_library(clangTidyGoogleModule - UsingNamespaceDirectiveCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyReadabilityModule -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyGoogleModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyReadabilityModule -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt b/clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt -index 4cf26767f3d..b4c9eb7a445 100644 ---- a/clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/hicpp/CMakeLists.txt -@@ -8,11 +8,6 @@ add_clang_library(clangTidyHICPPModule - SignedBitwiseCheck.cpp - - LINK_LIBS -- clangAST -- clangASTMatchers -- clangBasic -- clangLex -- clangSerialization - clangTidy - clangTidyBugproneModule - clangTidyCppCoreGuidelinesModule -@@ -23,3 +18,12 @@ add_clang_library(clangTidyHICPPModule - clangTidyReadabilityModule - clangTidyUtils - ) -+ -+clang_target_link_libraries(clangTidyHICPPModule -+ PRIVATE -+ clangAST -+ clangASTMatchers -+ clangBasic -+ clangLex -+ clangSerialization -+ ) -diff --git a/clang-tools-extra/clang-tidy/linuxkernel/CMakeLists.txt b/clang-tools-extra/clang-tidy/linuxkernel/CMakeLists.txt -index f0e766d30e4..bfcc2ba526d 100644 ---- a/clang-tools-extra/clang-tidy/linuxkernel/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/linuxkernel/CMakeLists.txt -@@ -5,10 +5,14 @@ add_clang_library(clangTidyLinuxKernelModule - MustCheckErrsCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyLinuxKernelModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clang-tidy/llvm/CMakeLists.txt b/clang-tools-extra/clang-tidy/llvm/CMakeLists.txt -index c035596b556..bff128cbba7 100644 ---- a/clang-tools-extra/clang-tidy/llvm/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/llvm/CMakeLists.txt -@@ -9,12 +9,16 @@ add_clang_library(clangTidyLLVMModule - TwineLocalCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyReadabilityModule -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyLLVMModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyReadabilityModule -- clangTidyUtils - clangTooling - ) -diff --git a/clang-tools-extra/clang-tidy/misc/CMakeLists.txt b/clang-tools-extra/clang-tidy/misc/CMakeLists.txt -index 3fc152148d6..37bc2aa5af6 100644 ---- a/clang-tools-extra/clang-tidy/misc/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/misc/CMakeLists.txt -@@ -17,13 +17,17 @@ add_clang_library(clangTidyMiscModule - UnusedUsingDeclsCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyMiscModule -+ PRIVATE - clangAnalysis - clangAST - clangASTMatchers - clangBasic - clangLex - clangSerialization -- clangTidy -- clangTidyUtils - clangTooling - ) -diff --git a/clang-tools-extra/clang-tidy/modernize/CMakeLists.txt b/clang-tools-extra/clang-tidy/modernize/CMakeLists.txt -index 36193f0a6d1..162f44568c5 100644 ---- a/clang-tools-extra/clang-tidy/modernize/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/modernize/CMakeLists.txt -@@ -36,12 +36,16 @@ add_clang_library(clangTidyModernizeModule - UseUsingCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyReadabilityModule -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyModernizeModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyReadabilityModule -- clangTidyUtils - clangTooling - ) -diff --git a/clang-tools-extra/clang-tidy/mpi/CMakeLists.txt b/clang-tools-extra/clang-tidy/mpi/CMakeLists.txt -index 5be7b36550a..b36767ac7f3 100644 ---- a/clang-tools-extra/clang-tidy/mpi/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/mpi/CMakeLists.txt -@@ -6,13 +6,17 @@ add_clang_library(clangTidyMPIModule - TypeMismatchCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyMPIModule -+ PRIVATE - clangAnalysis - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - clangTooling - clangStaticAnalyzerCheckers - ) -diff --git a/clang-tools-extra/clang-tidy/objc/CMakeLists.txt b/clang-tools-extra/clang-tidy/objc/CMakeLists.txt -index 68dda6530f7..3624d2f3ef0 100644 ---- a/clang-tools-extra/clang-tidy/objc/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/objc/CMakeLists.txt -@@ -9,10 +9,14 @@ add_clang_library(clangTidyObjCModule - SuperSelfCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyObjCModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clang-tidy/openmp/CMakeLists.txt b/clang-tools-extra/clang-tidy/openmp/CMakeLists.txt -index af95704fd44..d182b29f366 100644 ---- a/clang-tools-extra/clang-tidy/openmp/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/openmp/CMakeLists.txt -@@ -8,9 +8,13 @@ add_clang_library(clangTidyOpenMPModule - UseDefaultNoneCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyOpenMPModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic -- clangTidy -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clang-tidy/performance/CMakeLists.txt b/clang-tools-extra/clang-tidy/performance/CMakeLists.txt -index d1f9897b015..c9a7e262124 100644 ---- a/clang-tools-extra/clang-tidy/performance/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/performance/CMakeLists.txt -@@ -18,11 +18,15 @@ add_clang_library(clangTidyPerformanceModule - UnnecessaryValueParamCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyPerformanceModule -+ PRIVATE - clangAST - clangASTMatchers - clangAnalysis - clangBasic - clangLex -- clangTidy -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clang-tidy/plugin/CMakeLists.txt b/clang-tools-extra/clang-tidy/plugin/CMakeLists.txt -index 4adc3f26977..0bfe122314e 100644 ---- a/clang-tools-extra/clang-tidy/plugin/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/plugin/CMakeLists.txt -@@ -2,12 +2,16 @@ add_clang_library(clangTidyPlugin - ClangTidyPlugin.cpp - - LINK_LIBS -+ clangTidy -+ ${ALL_CLANG_TIDY_CHECKS} -+ ) -+ -+clang_target_link_libraries(clangTidyPlugin -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangFrontend - clangSema -- clangTidy - clangTooling -- ${ALL_CLANG_TIDY_CHECKS} - ) -diff --git a/clang-tools-extra/clang-tidy/portability/CMakeLists.txt b/clang-tools-extra/clang-tidy/portability/CMakeLists.txt -index 0420a18a2a6..bbe9ccbef1f 100644 ---- a/clang-tools-extra/clang-tidy/portability/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/portability/CMakeLists.txt -@@ -5,11 +5,15 @@ add_clang_library(clangTidyPortabilityModule - SIMDIntrinsicsCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyPortabilityModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - clangTooling - ) -diff --git a/clang-tools-extra/clang-tidy/readability/CMakeLists.txt b/clang-tools-extra/clang-tidy/readability/CMakeLists.txt -index 97144af06ca..5af900db5fd 100644 ---- a/clang-tools-extra/clang-tidy/readability/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/readability/CMakeLists.txt -@@ -41,11 +41,15 @@ add_clang_library(clangTidyReadabilityModule - UppercaseLiteralSuffixCheck.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyReadabilityModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - clangTooling - ) -diff --git a/clang-tools-extra/clang-tidy/utils/CMakeLists.txt b/clang-tools-extra/clang-tidy/utils/CMakeLists.txt -index fc383a318b9..5c837ca79aa 100644 ---- a/clang-tools-extra/clang-tidy/utils/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/utils/CMakeLists.txt -@@ -18,11 +18,15 @@ add_clang_library(clangTidyUtils - UsingInserter.cpp - - LINK_LIBS -+ clangTidy -+ ) -+ -+clang_target_link_libraries(clangTidyUtils -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex - clangSema -- clangTidy - clangTransformer - ) -diff --git a/clang-tools-extra/clang-tidy/zircon/CMakeLists.txt b/clang-tools-extra/clang-tidy/zircon/CMakeLists.txt -index 7aa7cd3f669..71db5e90f25 100644 ---- a/clang-tools-extra/clang-tidy/zircon/CMakeLists.txt -+++ b/clang-tools-extra/clang-tidy/zircon/CMakeLists.txt -@@ -5,10 +5,14 @@ add_clang_library(clangTidyZirconModule - ZirconTidyModule.cpp - - LINK_LIBS -+ clangTidy -+ clangTidyUtils -+ ) -+ -+clang_target_link_libraries(clangTidyZirconModule -+ PRIVATE - clangAST - clangASTMatchers - clangBasic - clangLex -- clangTidy -- clangTidyUtils - ) -diff --git a/clang-tools-extra/clangd/CMakeLists.txt b/clang-tools-extra/clangd/CMakeLists.txt -index e3eccb50a49..148043ee9df 100644 ---- a/clang-tools-extra/clangd/CMakeLists.txt -+++ b/clang-tools-extra/clangd/CMakeLists.txt -@@ -110,6 +110,13 @@ add_clang_library(clangDaemon - refactor/Tweak.cpp - - LINK_LIBS -+ clangTidy -+ ${LLVM_PTHREAD_LIB} -+ ${ALL_CLANG_TIDY_CHECKS} -+ ) -+ -+clang_target_link_libraries(clangDaemon -+ PRIVATE - clangAST - clangASTMatchers - clangBasic -@@ -120,15 +127,11 @@ add_clang_library(clangDaemon - clangLex - clangSema - clangSerialization -- clangTidy - clangTooling - clangToolingCore - clangToolingInclusions - clangToolingRefactoring - clangToolingSyntax -- ${LLVM_PTHREAD_LIB} -- ${CLANGD_ATOMIC_LIB} -- ${ALL_CLANG_TIDY_CHECKS} - ) - - add_subdirectory(refactor/tweaks) -diff --git a/clang-tools-extra/clangd/unittests/CMakeLists.txt b/clang-tools-extra/clangd/unittests/CMakeLists.txt -index 62113c6e4bb..6c2b56c93d5 100644 ---- a/clang-tools-extra/clangd/unittests/CMakeLists.txt -+++ b/clang-tools-extra/clangd/unittests/CMakeLists.txt -@@ -103,7 +103,6 @@ target_link_libraries(ClangdTests - PRIVATE - clangDaemon - clangTidy -- LLVMSupport - LLVMTestingSupport - ) - --- -2.27.0 - |