Skip to content

Commit 77689f5

Browse files
authored
Revert "Set a reasonable default for SWIFT_INSTALL_COMPONENTS" (#22079)
1 parent 9644423 commit 77689f5

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

cmake/modules/SwiftComponents.cmake

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,10 @@
6767
set(_SWIFT_DEFINED_COMPONENTS
6868
"autolink-driver;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-dev-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc;swift-remote-mirror;swift-remote-mirror-headers")
6969

70-
# The default install components include all of the defined components, except
71-
# for the following exceptions.
72-
set(_SWIFT_DEFAULT_COMPONENTS "${_SWIFT_DEFINED_COMPONENTS}")
73-
# 'dev' takes up a lot of disk space and isn't part of a normal toolchain.
74-
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "dev")
75-
# These clang header options conflict with 'clang-builtin-headers'.
76-
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-resource-dir-symlink")
77-
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "clang-builtin-headers-in-clang-resource-dir")
78-
# The sourcekit install variants are currently mutually exclusive.
79-
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
80-
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "sourcekit-inproc")
81-
else()
82-
list(REMOVE_ITEM _SWIFT_DEFAULT_COMPONENTS "sourcekit-xpc-service")
83-
endif()
84-
8570
macro(swift_configure_components)
8671
# Set the SWIFT_INSTALL_COMPONENTS variable to the default value if it is not passed in via -D
87-
set(SWIFT_INSTALL_COMPONENTS "${_SWIFT_DEFAULT_COMPONENTS}" CACHE STRING
88-
"A semicolon-separated list of components to install from the set ${_SWIFT_DEFINED_COMPONENTS}")
72+
set(SWIFT_INSTALL_COMPONENTS "${_SWIFT_DEFINED_COMPONENTS}" CACHE STRING
73+
"A semicolon-separated list of components to install ${_SWIFT_DEFINED_COMPONENTS}")
8974

9075
foreach(component ${_SWIFT_DEFINED_COMPONENTS})
9176
string(TOUPPER "${component}" var_name_piece)

utils/build-script-impl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,6 +2302,7 @@ for host in "${ALL_HOSTS[@]}"; do
23022302
-DSWIFT_BUILD_EXTERNAL_PERF_TESTSUITE:BOOL=$(true_false "${build_external_perf_testsuite_this_time}")
23032303
-DSWIFT_BUILD_EXAMPLES:BOOL=$(true_false "${BUILD_SWIFT_EXAMPLES}")
23042304
-DSWIFT_INCLUDE_TESTS:BOOL=$(true_false "${build_tests_this_time}")
2305+
-DSWIFT_INSTALL_COMPONENTS:STRING="${SWIFT_INSTALL_COMPONENTS}"
23052306
-DSWIFT_EMBED_BITCODE_SECTION:BOOL=$(true_false "${EMBED_BITCODE_SECTION}")
23062307
-DSWIFT_TOOLS_ENABLE_LTO:STRING="${SWIFT_TOOLS_ENABLE_LTO}"
23072308
-DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=$(true_false "${BUILD_RUNTIME_WITH_HOST_COMPILER}")
@@ -2372,13 +2373,6 @@ for host in "${ALL_HOSTS[@]}"; do
23722373
)
23732374
fi
23742375

2375-
if [ "${SWIFT_INSTALL_COMPONENTS}" ] ; then
2376-
cmake_options=(
2377-
"${cmake_options[@]}"
2378-
-DSWIFT_INSTALL_COMPONENTS:STRING="${SWIFT_INSTALL_COMPONENTS}"
2379-
)
2380-
fi
2381-
23822376
if contains_product "lldb" ; then
23832377
lldb_build_dir=$(build_directory ${host} lldb)
23842378
cmake_options=(

0 commit comments

Comments
 (0)