65
65
# * toolchain-tools -- a subset of tools that we will install to the OSS toolchain.
66
66
# * testsuite-tools -- extra tools required to run the Swift testsuite.
67
67
# * static-mirror-lib -- Build the static mirror library used by SwiftStaticMirror.
68
+ # * swift-syntax-lib -- install swift-syntax libraries
68
69
# * toolchain-dev-tools -- install development tools useful in a shared toolchain
69
70
# * llvm-toolchain-dev-tools -- install LLVM development tools useful in a shared toolchain
70
71
# * dev -- headers and libraries required to use Swift compiler as a library.
71
72
set (_SWIFT_DEFINED_COMPONENTS
72
- "autolink-driver;back-deployment;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;libexec;stdlib;stdlib-experimental;sdk-overlay;static-mirror-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" )
73
+ "autolink-driver;back-deployment;compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;libexec;stdlib;stdlib-experimental;sdk-overlay;static-mirror-lib;swift-syntax-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" )
73
74
74
75
# The default install components include all of the defined components, except
75
76
# for the following exceptions.
@@ -96,6 +97,12 @@ macro(swift_configure_components)
96
97
set (SWIFT_INSTALL_COMPONENTS "${_SWIFT_DEFAULT_COMPONENTS} " CACHE STRING
97
98
"A semicolon-separated list of components to install from the set ${_SWIFT_DEFINED_COMPONENTS} " )
98
99
100
+ # 'compiler' depends on 'swift-syntax-lib' component.
101
+ if ("compiler" IN_LIST SWIFT_INSTALL_COMPONENTS AND
102
+ NOT "swift-syntax-lib" IN_LIST SWIFT_INSTALL_COMPONENTS)
103
+ list (APPEND SWIFT_INSTALL_COMPONENTS "swift-syntax-lib" )
104
+ endif ()
105
+
99
106
foreach (component ${_SWIFT_DEFINED_COMPONENTS} )
100
107
add_custom_target (${component} )
101
108
add_llvm_install_targets(install -${component}
0 commit comments