mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[cmake] Add a new component llvm-toolchain-dev-tools and make FileCheck installation use it.
This will let me reuse toolchain-dev-tools for tools useful in a just built toolchain but that are from Swift rather than copied from LLVM.
This commit is contained in:
@@ -65,9 +65,10 @@
|
||||
# * toolchain-tools -- a subset of tools that we will install to the OSS toolchain.
|
||||
# * testsuite-tools -- extra tools required to run the Swift testsuite.
|
||||
# * toolchain-dev-tools -- install development tools useful in a shared toolchain
|
||||
# * llvm-toolchain-dev-tools -- install LLVM development tools useful in a shared toolchain
|
||||
# * dev -- headers and libraries required to use Swift compiler as a library.
|
||||
set(_SWIFT_DEFINED_COMPONENTS
|
||||
"autolink-driver;back-deployment;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;parser-lib;editor-integration;tools;testsuite-tools;toolchain-tools;toolchain-dev-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc;swift-remote-mirror;swift-remote-mirror-headers")
|
||||
"autolink-driver;back-deployment;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;parser-lib;editor-integration;tools;testsuite-tools;toolchain-tools;toolchain-dev-tools;llvm-toolchain-dev-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc;swift-remote-mirror;swift-remote-mirror-headers")
|
||||
|
||||
# The default install components include all of the defined components, except
|
||||
# for the following exceptions.
|
||||
@@ -78,7 +79,7 @@ list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "dev")
|
||||
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-resource-dir-symlink")
|
||||
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-builtin-headers-in-clang-resource-dir")
|
||||
# This conflicts with LLVM itself when doing unified builds.
|
||||
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "toolchain-dev-tools")
|
||||
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "llvm-toolchain-dev-tools")
|
||||
# The sourcekit install variants are currently mutually exclusive.
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "sourcekit-inproc")
|
||||
|
||||
@@ -14,4 +14,4 @@ swift_install_in_component(PROGRAMS swift-api-dump.py
|
||||
file(TO_CMAKE_PATH "${LLVM_BUILD_BINARY_DIR}/bin/FileCheck${CMAKE_EXECUTABLE_SUFFIX}" _SWIFT_UTILS_FILECHECK)
|
||||
swift_install_in_component(PROGRAMS "${_SWIFT_UTILS_FILECHECK}"
|
||||
DESTINATION bin
|
||||
COMPONENT toolchain-dev-tools)
|
||||
COMPONENT llvm-toolchain-dev-tools)
|
||||
|
||||
Reference in New Issue
Block a user