Skip to content

[cmake] Rename COMPONENT_DEPENDS to LLVM_COMPONENT_DEPENDS #4311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ endfunction()
# [LINK_LIBRARIES dep1 ...]
# [FRAMEWORK_DEPENDS dep1 ...]
# [FRAMEWORK_DEPENDS_WEAK dep1 ...]
# [COMPONENT_DEPENDS comp1 ...]
# [LLVM_COMPONENT_DEPENDS comp1 ...]
# [C_COMPILE_FLAGS flag1...]
# [SWIFT_COMPILE_FLAGS flag1...]
# [LINK_FLAGS flag1...]
Expand Down Expand Up @@ -447,7 +447,7 @@ endfunction()
# FRAMEWORK_DEPENDS_WEAK
# System frameworks this library depends on that should be weakly-linked.
#
# COMPONENT_DEPENDS
# LLVM_COMPONENT_DEPENDS
# LLVM components this library depends on.
#
# C_COMPILE_FLAGS
Expand Down Expand Up @@ -493,7 +493,7 @@ function(_add_swift_library_single target name)
cmake_parse_arguments(SWIFTLIB_SINGLE
"${SWIFTLIB_SINGLE_options}"
"SDK;ARCHITECTURE;INSTALL_IN_COMPONENT;DEPLOYMENT_VERSION_IOS"
"DEPENDS;LINK_LIBRARIES;FRAMEWORK_DEPENDS;FRAMEWORK_DEPENDS_WEAK;COMPONENT_DEPENDS;C_COMPILE_FLAGS;SWIFT_COMPILE_FLAGS;LINK_FLAGS;PRIVATE_LINK_LIBRARIES;INTERFACE_LINK_LIBRARIES;INCORPORATE_OBJECT_LIBRARIES;FILE_DEPENDS"
"DEPENDS;LINK_LIBRARIES;FRAMEWORK_DEPENDS;FRAMEWORK_DEPENDS_WEAK;LLVM_COMPONENT_DEPENDS;C_COMPILE_FLAGS;SWIFT_COMPILE_FLAGS;LINK_FLAGS;PRIVATE_LINK_LIBRARIES;INTERFACE_LINK_LIBRARIES;INCORPORATE_OBJECT_LIBRARIES;FILE_DEPENDS"
${ARGN})

set(SWIFTLIB_SINGLE_SOURCES ${SWIFTLIB_SINGLE_UNPARSED_ARGUMENTS})
Expand Down Expand Up @@ -888,7 +888,7 @@ function(_add_swift_library_single target name)

if(NOT SWIFTLIB_SINGLE_TARGET_LIBRARY)
# Call llvm_config() only for libraries that are part of the compiler.
swift_common_llvm_config("${target}" ${SWIFTLIB_SINGLE_COMPONENT_DEPENDS})
swift_common_llvm_config("${target}" ${SWIFTLIB_SINGLE_LLVM_COMPONENT_DEPENDS})
endif()

# Collect compile and link flags for the static and non-static targets.
Expand Down Expand Up @@ -1054,7 +1054,7 @@ endfunction()
# [SWIFT_MODULE_DEPENDS dep1 ...]
# [FRAMEWORK_DEPENDS dep1 ...]
# [FRAMEWORK_DEPENDS_WEAK dep1 ...]
# [COMPONENT_DEPENDS comp1 ...]
# [LLVM_COMPONENT_DEPENDS comp1 ...]
# [FILE_DEPENDS target1 ...]
# [TARGET_SDKS sdk1...]
# [C_COMPILE_FLAGS flag1...]
Expand Down Expand Up @@ -1113,7 +1113,7 @@ endfunction()
# FRAMEWORK_DEPENDS_WEAK
# System frameworks this library depends on that should be weak-linked
#
# COMPONENT_DEPENDS
# LLVM_COMPONENT_DEPENDS
# LLVM components this library depends on.
#
# FILE_DEPENDS
Expand Down Expand Up @@ -1171,7 +1171,7 @@ function(add_swift_library name)
cmake_parse_arguments(SWIFTLIB
"${SWIFTLIB_options}"
"INSTALL_IN_COMPONENT;DEPLOYMENT_VERSION_IOS"
"DEPENDS;LINK_LIBRARIES;SWIFT_MODULE_DEPENDS;SWIFT_MODULE_DEPENDS_OSX;SWIFT_MODULE_DEPENDS_IOS;SWIFT_MODULE_DEPENDS_TVOS;SWIFT_MODULE_DEPENDS_WATCHOS;SWIFT_MODULE_DEPENDS_FREEBSD;SWIFT_MODULE_DEPENDS_LINUX;FRAMEWORK_DEPENDS;FRAMEWORK_DEPENDS_WEAK;FRAMEWORK_DEPENDS_OSX;FRAMEWORK_DEPENDS_IOS_TVOS;COMPONENT_DEPENDS;FILE_DEPENDS;TARGET_SDKS;C_COMPILE_FLAGS;SWIFT_COMPILE_FLAGS;SWIFT_COMPILE_FLAGS_OSX;SWIFT_COMPILE_FLAGS_IOS;SWIFT_COMPILE_FLAGS_TVOS;SWIFT_COMPILE_FLAGS_WATCHOS;LINK_FLAGS;PRIVATE_LINK_LIBRARIES;INTERFACE_LINK_LIBRARIES;INCORPORATE_OBJECT_LIBRARIES"
"DEPENDS;LINK_LIBRARIES;SWIFT_MODULE_DEPENDS;SWIFT_MODULE_DEPENDS_OSX;SWIFT_MODULE_DEPENDS_IOS;SWIFT_MODULE_DEPENDS_TVOS;SWIFT_MODULE_DEPENDS_WATCHOS;SWIFT_MODULE_DEPENDS_FREEBSD;SWIFT_MODULE_DEPENDS_LINUX;FRAMEWORK_DEPENDS;FRAMEWORK_DEPENDS_WEAK;FRAMEWORK_DEPENDS_OSX;FRAMEWORK_DEPENDS_IOS_TVOS;LLVM_COMPONENT_DEPENDS;FILE_DEPENDS;TARGET_SDKS;C_COMPILE_FLAGS;SWIFT_COMPILE_FLAGS;SWIFT_COMPILE_FLAGS_OSX;SWIFT_COMPILE_FLAGS_IOS;SWIFT_COMPILE_FLAGS_TVOS;SWIFT_COMPILE_FLAGS_WATCHOS;LINK_FLAGS;PRIVATE_LINK_LIBRARIES;INTERFACE_LINK_LIBRARIES;INCORPORATE_OBJECT_LIBRARIES"
${ARGN})
set(SWIFTLIB_SOURCES ${SWIFTLIB_UNPARSED_ARGUMENTS})

Expand Down Expand Up @@ -1369,7 +1369,7 @@ function(add_swift_library name)
LINK_LIBRARIES ${swiftlib_link_libraries}
FRAMEWORK_DEPENDS ${swiftlib_framework_depends_flattened}
FRAMEWORK_DEPENDS_WEAK ${SWIFTLIB_FRAMEWORK_DEPENDS_WEAK}
COMPONENT_DEPENDS ${SWIFTLIB_COMPONENT_DEPENDS}
LLVM_COMPONENT_DEPENDS ${SWIFTLIB_LLVM_COMPONENT_DEPENDS}
FILE_DEPENDS ${SWIFTLIB_FILE_DEPENDS} ${swiftlib_module_dependency_targets}
C_COMPILE_FLAGS ${SWIFTLIB_C_COMPILE_FLAGS}
SWIFT_COMPILE_FLAGS ${swiftlib_swift_compile_flags_all}
Expand Down Expand Up @@ -1557,7 +1557,7 @@ function(add_swift_library name)
LINK_LIBRARIES ${SWIFTLIB_LINK_LIBRARIES}
FRAMEWORK_DEPENDS ${SWIFTLIB_FRAMEWORK_DEPENDS}
FRAMEWORK_DEPENDS_WEAK ${SWIFTLIB_FRAMEWORK_DEPENDS_WEAK}
COMPONENT_DEPENDS ${SWIFTLIB_COMPONENT_DEPENDS}
LLVM_COMPONENT_DEPENDS ${SWIFTLIB_LLVM_COMPONENT_DEPENDS}
FILE_DEPENDS ${SWIFTLIB_FILE_DEPENDS}
C_COMPILE_FLAGS ${SWIFTLIB_C_COMPILE_FLAGS}
SWIFT_COMPILE_FLAGS ${swiftlib_swift_compile_flags_all}
Expand Down Expand Up @@ -1597,7 +1597,7 @@ function(_add_swift_executable_single name)
cmake_parse_arguments(SWIFTEXE_SINGLE
"EXCLUDE_FROM_ALL;DONT_STRIP_NON_MAIN_SYMBOLS;DISABLE_ASLR"
"SDK;ARCHITECTURE"
"DEPENDS;COMPONENT_DEPENDS;LINK_LIBRARIES;LINK_FAT_LIBRARIES"
"DEPENDS;LLVM_COMPONENT_DEPENDS;LINK_LIBRARIES;LINK_FAT_LIBRARIES"
${ARGN})

set(SWIFTEXE_SINGLE_SOURCES ${SWIFTEXE_SINGLE_UNPARSED_ARGUMENTS})
Expand Down Expand Up @@ -1710,7 +1710,7 @@ function(_add_swift_executable_single name)
LIBRARY_DIR ${SWIFT_LIBRARY_OUTPUT_INTDIR})

target_link_libraries("${name}" ${SWIFTEXE_SINGLE_LINK_LIBRARIES} ${SWIFTEXE_SINGLE_LINK_FAT_LIBRARIES})
swift_common_llvm_config("${name}" ${SWIFTEXE_SINGLE_COMPONENT_DEPENDS})
swift_common_llvm_config("${name}" ${SWIFTEXE_SINGLE_LLVM_COMPONENT_DEPENDS})

set_target_properties(${name}
PROPERTIES FOLDER "Swift executables")
Expand All @@ -1729,7 +1729,7 @@ function(add_swift_target_executable name)
cmake_parse_arguments(SWIFTEXE_TARGET
"EXCLUDE_FROM_ALL;DONT_STRIP_NON_MAIN_SYMBOLS;DISABLE_ASLR;BUILD_WITH_STDLIB"
""
"DEPENDS;COMPONENT_DEPENDS;LINK_FAT_LIBRARIES"
"DEPENDS;LLVM_COMPONENT_DEPENDS;LINK_FAT_LIBRARIES"
${ARGN})

set(SWIFTEXE_TARGET_SOURCES ${SWIFTEXE_TARGET_UNPARSED_ARGUMENTS})
Expand Down Expand Up @@ -1781,7 +1781,7 @@ function(add_swift_target_executable name)
${VARIANT_NAME}
${SWIFTEXE_TARGET_SOURCES}
DEPENDS ${SWIFTEXE_TARGET_DEPENDS_with_suffix}
COMPONENT_DEPENDS ${SWIFTEXE_TARGET_COMPONENT_DEPENDS}
LLVM_COMPONENT_DEPENDS ${SWIFTEXE_TARGET_LLVM_COMPONENT_DEPENDS}
SDK "${sdk}"
ARCHITECTURE "${arch}"
LINK_FAT_LIBRARIES ${SWIFTEXE_TARGET_LINK_FAT_LIBRARIES}
Expand All @@ -1797,7 +1797,7 @@ endfunction()
# Usage:
# add_swift_executable(name
# [DEPENDS dep1 ...]
# [COMPONENT_DEPENDS comp1 ...]
# [LLVM_COMPONENT_DEPENDS comp1 ...]
# [FILE_DEPENDS target1 ...]
# [LINK_LIBRARIES target1 ...]
# [EXCLUDE_FROM_ALL]
Expand All @@ -1811,7 +1811,7 @@ endfunction()
# LIBRARIES
# Libraries this executable depends on, without variant suffixes.
#
# COMPONENT_DEPENDS
# LLVM_COMPONENT_DEPENDS
# LLVM components this executable depends on.
#
# FILE_DEPENDS
Expand Down Expand Up @@ -1840,7 +1840,7 @@ function(add_swift_executable name)
cmake_parse_arguments(SWIFTEXE
"EXCLUDE_FROM_ALL;DONT_STRIP_NON_MAIN_SYMBOLS;DISABLE_ASLR"
""
"DEPENDS;COMPONENT_DEPENDS;LINK_LIBRARIES"
"DEPENDS;LLVM_COMPONENT_DEPENDS;LINK_LIBRARIES"
${ARGN})

translate_flag(${SWIFTEXE_EXCLUDE_FROM_ALL}
Expand All @@ -1859,7 +1859,7 @@ function(add_swift_executable name)
${name}
${SWIFTEXE_SOURCES}
DEPENDS ${SWIFTEXE_DEPENDS}
COMPONENT_DEPENDS ${SWIFTEXE_COMPONENT_DEPENDS}
LLVM_COMPONENT_DEPENDS ${SWIFTEXE_LLVM_COMPONENT_DEPENDS}
LINK_LIBRARIES ${SWIFTEXE_LINK_LIBRARIES}
SDK ${SWIFT_HOST_VARIANT_SDK}
ARCHITECTURE ${SWIFT_HOST_VARIANT_ARCH}
Expand Down
2 changes: 1 addition & 1 deletion lib/AST/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ add_swift_library(swiftAST STATIC
clangAPINotes
clangBasic

COMPONENT_DEPENDS
LLVM_COMPONENT_DEPENDS
bitreader bitwriter irreader debuginfoDWARF
profiledata instrumentation object objcarcopts mc mcparser
bitreader bitwriter lto ipo option core support ${LLVM_TARGETS_TO_BUILD}
Expand Down
2 changes: 1 addition & 1 deletion lib/ASTSectionImporter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
add_swift_library(swiftASTSectionImporter STATIC
ASTSectionImporter.cpp
LINK_LIBRARIES swiftBasic
COMPONENT_DEPENDS core)
LLVM_COMPONENT_DEPENDS core)

2 changes: 1 addition & 1 deletion lib/Basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ add_swift_library(swiftBasic STATIC

C_COMPILE_FLAGS ${UUID_INCLUDE}
LINK_LIBRARIES ${UUID_LIBRARIES}
COMPONENT_DEPENDS support)
LLVM_COMPONENT_DEPENDS support)

message(STATUS "Swift version: ${SWIFT_VERSION}")
message(STATUS "Swift vendor: ${SWIFT_VENDOR}")
Expand Down
2 changes: 1 addition & 1 deletion lib/Immediate/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ add_swift_library(swiftImmediate STATIC
swiftSILGen
swiftSILOptimizer
swiftIRGen
COMPONENT_DEPENDS
LLVM_COMPONENT_DEPENDS
linker mcjit)

2 changes: 1 addition & 1 deletion lib/LLVMPasses/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ add_swift_library(swiftLLVMPasses STATIC
LLVMStackPromotion.cpp
LLVMMergeFunctions.cpp

COMPONENT_DEPENDS
LLVM_COMPONENT_DEPENDS
analysis
)

24 changes: 12 additions & 12 deletions tools/SourceKit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ endfunction()
# Usage:
# add_sourcekit_library(name # Name of the library
# [DEPENDS dep1 ...] # Libraries this library depends on
# [COMPONENT_DEPENDS comp1 ...] # LLVM components this library depends on
# [LLVM_COMPONENT_DEPENDS comp1 ...] # LLVM components this library depends on
# [INSTALL_IN_COMPONENT comp] # The Swift installation component that this library belongs to.
# [SHARED]
# source1 [source2 source3 ...]) # Sources to add into this library
macro(add_sourcekit_library name)
cmake_parse_arguments(SOURCEKITLIB
"SHARED"
"INSTALL_IN_COMPONENT"
"DEPENDS;COMPONENT_DEPENDS"
"DEPENDS;LLVM_COMPONENT_DEPENDS"
${ARGN})
set(srcs ${SOURCEKITLIB_UNPARSED_ARGUMENTS})

Expand Down Expand Up @@ -178,7 +178,7 @@ macro(add_sourcekit_library name)
target_link_libraries("${name}" INTERFACE ${SOURCEKITLIB_DEPENDS})
endif()

swift_common_llvm_config(${name} ${SOURCEKITLIB_COMPONENT_DEPENDS})
swift_common_llvm_config(${name} ${SOURCEKITLIB_LLVM_COMPONENT_DEPENDS})

if(SOURCEKITLIB_SHARED AND EXPORTED_SYMBOL_FILE)
add_sourcekit_symbol_exports(${name} ${EXPORTED_SYMBOL_FILE})
Expand Down Expand Up @@ -212,7 +212,7 @@ endmacro()
# Usage:
# add_sourcekit_executable(name # Name of the executable
# [DEPENDS dep1 ...] # Libraries this executable depends on
# [COMPONENT_DEPENDS comp1 ...] # LLVM components this executable
# [LLVM_COMPONENT_DEPENDS comp1 ...] # LLVM components this executable
# # depends on
# [EXCLUDE_FROM_ALL] # Whether to exclude this executable from
# # the ALL_BUILD target
Expand All @@ -221,7 +221,7 @@ macro(add_sourcekit_executable name)
cmake_parse_arguments(SOURCEKITEXE
"EXCLUDE_FROM_ALL"
""
"DEPENDS;COMPONENT_DEPENDS"
"DEPENDS;LLVM_COMPONENT_DEPENDS"
${ARGN})

if (${SOURCEKITEXE_EXCLUDE_FROM_ALL})
Expand All @@ -240,7 +240,7 @@ macro(add_sourcekit_executable name)
endif()

target_link_libraries(${name} ${SOURCEKITEXE_DEPENDS})
swift_common_llvm_config(${name} ${SOURCEKITEXE_COMPONENT_DEPENDS})
swift_common_llvm_config(${name} ${SOURCEKITEXE_LLVM_COMPONENT_DEPENDS})
target_link_libraries(${name} ${LLVM_COMMON_LIBS})

set_target_properties(${name} PROPERTIES FOLDER "SourceKit executables")
Expand All @@ -263,13 +263,13 @@ endmacro()
# Usage:
# add_sourcekit_framework(name # Name of the framework
# [DEPENDS dep1 ...] # Libraries this framework depends on
# [COMPONENT_DEPENDS comp1 ...] # LLVM components this framework depends on
# [LLVM_COMPONENT_DEPENDS comp1 ...] # LLVM components this framework depends on
# [MODULEMAP modulemap] # Module map file for this framework
# [INSTALL_IN_COMPONENT comp] # The Swift installation component that this framework belongs to.
# source1 [source2 source3 ...]) # Sources to add into this framework
macro(add_sourcekit_framework name)
cmake_parse_arguments(SOURCEKITFW
"" "MODULEMAP;INSTALL_IN_COMPONENT" "DEPENDS;COMPONENT_DEPENDS" ${ARGN})
"" "MODULEMAP;INSTALL_IN_COMPONENT" "DEPENDS;LLVM_COMPONENT_DEPENDS" ${ARGN})
set(srcs ${SOURCEKITFW_UNPARSED_ARGUMENTS})

set(lib_dir ${SOURCEKIT_LIBRARY_OUTPUT_INTDIR})
Expand Down Expand Up @@ -312,7 +312,7 @@ macro(add_sourcekit_framework name)
endif(LLVM_COMMON_DEPENDS)

target_link_libraries(${name} PRIVATE ${SOURCEKITFW_DEPENDS})
swift_common_llvm_config(${name} ${SOURCEKITFW_COMPONENT_DEPENDS})
swift_common_llvm_config(${name} ${SOURCEKITFW_LLVM_COMPONENT_DEPENDS})

if (EXPORTED_SYMBOL_FILE)
add_sourcekit_symbol_exports(${name} ${EXPORTED_SYMBOL_FILE})
Expand Down Expand Up @@ -379,10 +379,10 @@ endmacro(add_sourcekit_framework)
# Usage:
# add_sourcekit_xpc_service(name # Name of the XPC service
# [DEPENDS dep1 ...] # Libraries this service depends on
# [COMPONENT_DEPENDS comp1 ...] # LLVM components this service depends on
# [LLVM_COMPONENT_DEPENDS comp1 ...] # LLVM components this service depends on
# source1 [source2 source3 ...]) # Sources to add into this service
macro(add_sourcekit_xpc_service name framework_target)
cmake_parse_arguments(SOURCEKITXPC "" "" "DEPENDS;COMPONENT_DEPENDS" ${ARGN})
cmake_parse_arguments(SOURCEKITXPC "" "" "DEPENDS;LLVM_COMPONENT_DEPENDS" ${ARGN})
set(srcs ${SOURCEKITXPC_UNPARSED_ARGUMENTS})

set(lib_dir ${SOURCEKIT_LIBRARY_OUTPUT_INTDIR})
Expand Down Expand Up @@ -424,7 +424,7 @@ macro(add_sourcekit_xpc_service name framework_target)
endif(LLVM_COMMON_DEPENDS)

target_link_libraries(${name} ${SOURCEKITXPC_DEPENDS})
swift_common_llvm_config(${name} ${SOURCEKITXPC_COMPONENT_DEPENDS})
swift_common_llvm_config(${name} ${SOURCEKITXPC_LLVM_COMPONENT_DEPENDS})
target_link_libraries(${name} ${LLVM_COMMON_LIBS})

add_dependencies(${framework_target} ${name})
Expand Down
2 changes: 1 addition & 1 deletion tools/SourceKit/lib/SwiftLang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ add_sourcekit_library(SourceKitSwiftLang
clangAST
clangAPINotes
clangBasic
COMPONENT_DEPENDS ${LLVM_TARGETS_TO_BUILD}
LLVM_COMPONENT_DEPENDS ${LLVM_TARGETS_TO_BUILD}
bitreader
bitwriter
debuginfodwarf
Expand Down
2 changes: 1 addition & 1 deletion tools/SourceKit/tools/complete-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ endif()
add_sourcekit_executable(complete-test
complete-test.cpp
DEPENDS ${SOURCEKITD_TEST_DEPEND}
COMPONENT_DEPENDS support option
LLVM_COMPONENT_DEPENDS support option
)

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand Down
2 changes: 1 addition & 1 deletion tools/SourceKit/tools/sourcekitd-repl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if(HAVE_UNICODE_LIBEDIT)
add_sourcekit_executable(sourcekitd-repl
sourcekitd-repl.cpp
DEPENDS ${SOURCEKITD_REPL_DEPEND} edit
COMPONENT_DEPENDS support
LLVM_COMPONENT_DEPENDS support
)

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand Down
2 changes: 1 addition & 1 deletion tools/SourceKit/tools/sourcekitd-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add_sourcekit_executable(sourcekitd-test
TestOptions.cpp
DEPENDS ${SOURCEKITD_TEST_DEPEND} SourceKitSupport
clangRewrite clangLex clangBasic
COMPONENT_DEPENDS support option
LLVM_COMPONENT_DEPENDS support option
)

add_dependencies(sourcekitd-test sourcekitdTestOptionsTableGen)
Expand Down
4 changes: 2 additions & 2 deletions tools/SourceKit/tools/sourcekitd/bin/InProc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (SOURCEKIT_INSTALLING_INPROC)
${SOURCEKITD_SOURCE_DIR}/include/sourcekitd/sourcekitd.h
sourcekitdInProc.cpp
DEPENDS SourceKitSwiftLang sourcekitdAPI
COMPONENT_DEPENDS support
LLVM_COMPONENT_DEPENDS support
MODULEMAP module.modulemap
INSTALL_IN_COMPONENT sourcekit-inproc
)
Expand All @@ -14,7 +14,7 @@ else()
add_sourcekit_library(sourcekitdInProc
sourcekitdInProc.cpp
DEPENDS SourceKitSwiftLang sourcekitdAPI
COMPONENT_DEPENDS support
LLVM_COMPONENT_DEPENDS support
INSTALL_IN_COMPONENT sourcekit-inproc

# Note that this cannot be a static library due to the way it looks for the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ add_sourcekit_framework(sourcekitd
${public_headers}
sourcekitd.cpp tracer.cpp
DEPENDS sourcekitdAPI
COMPONENT_DEPENDS support
LLVM_COMPONENT_DEPENDS support
MODULEMAP module.modulemap
INSTALL_IN_COMPONENT sourcekit-xpc-service
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if (NOT SOURCEKIT_INSTALLING_INPROC)
add_sourcekit_xpc_service(SourceKitService sourcekitd
XPCService.cpp XpcTracing.cpp
DEPENDS SourceKitSwiftLang sourcekitdAPI
COMPONENT_DEPENDS support
LLVM_COMPONENT_DEPENDS support
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion tools/swift-demangle/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
add_swift_executable(swift-demangle
swift-demangle.cpp
LINK_LIBRARIES swiftBasic
COMPONENT_DEPENDS support)
LLVM_COMPONENT_DEPENDS support)

swift_install_in_component(compiler
TARGETS swift-demangle
Expand Down
2 changes: 1 addition & 1 deletion tools/swift-reflection-dump/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ add_swift_executable(swift-reflection-dump
swift-reflection-dump.cpp
LINK_FAT_LIBRARIES
swiftReflection
COMPONENT_DEPENDS object support
LLVM_COMPONENT_DEPENDS object support
)

swift_install_in_component(tools
Expand Down