Skip to content

Commit fa79c23

Browse files
authored
[clang-tidy] Fix linking regression in clangTidyLLVMModule (#150769)
Fix the regression introduced in #149148 that incorrectly explicitly linked `clangTransformer` when dylib was used. As a result, the executables linking to `clangTidyLLVMModule` would end up linking both the dylib and a number of static clang libraries, leading to complete mayhem and undecipherable segmentation faults. Signed-off-by: Michał Górny <[email protected]>
1 parent 292fd90 commit fa79c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/llvm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ add_clang_library(clangTidyLLVMModule STATIC
1717
clangTidy
1818
clangTidyReadabilityModule
1919
clangTidyUtils
20-
clangTransformer
2120

2221
DEPENDS
2322
omp_gen
@@ -31,4 +30,5 @@ clang_target_link_libraries(clangTidyLLVMModule
3130
clangBasic
3231
clangLex
3332
clangTooling
33+
clangTransformer
3434
)

0 commit comments

Comments
 (0)