Skip to content

Commit 8fd2652

Browse files
committed
[IndexStore] Remove unnecessary link components
The indexstore only depends on LLVM support. Only link to it rather than core and `LLVM_TARGETS_TO_BUILD`. Resolves rdar://106575658.
1 parent da68a15 commit 8fd2652

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

clang/tools/IndexStore/CMakeLists.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ set(SOURCES
88
../../include/indexstore/IndexStoreCXX.h
99
)
1010

11-
set(LIBS
12-
clangIndex
13-
clangIndexDataStore
14-
)
15-
1611
if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
1712
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/IndexStore.exports)
1813
endif()
@@ -28,11 +23,10 @@ add_clang_library(IndexStore SHARED
2823
${SOURCES}
2924

3025
LINK_LIBS
31-
${LIBS}
26+
clangIndex
27+
clangIndexDataStore
3228

3329
LINK_COMPONENTS
34-
${LLVM_TARGETS_TO_BUILD}
35-
Core
3630
Support
3731
)
3832

0 commit comments

Comments
 (0)