File tree Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Expand file tree Collapse file tree 2 files changed +3
-24
lines changed Original file line number Diff line number Diff line change 67
67
set (_SWIFT_DEFINED_COMPONENTS
68
68
"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" )
69
69
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
-
85
70
macro (swift_configure_components )
86
71
# 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} " )
89
74
90
75
foreach (component ${_SWIFT_DEFINED_COMPONENTS} )
91
76
string (TOUPPER "${component} " var_name_piece )
Original file line number Diff line number Diff line change @@ -2302,6 +2302,7 @@ for host in "${ALL_HOSTS[@]}"; do
2302
2302
-DSWIFT_BUILD_EXTERNAL_PERF_TESTSUITE:BOOL=$( true_false " ${build_external_perf_testsuite_this_time} " )
2303
2303
-DSWIFT_BUILD_EXAMPLES:BOOL=$( true_false " ${BUILD_SWIFT_EXAMPLES} " )
2304
2304
-DSWIFT_INCLUDE_TESTS:BOOL=$( true_false " ${build_tests_this_time} " )
2305
+ -DSWIFT_INSTALL_COMPONENTS:STRING=" ${SWIFT_INSTALL_COMPONENTS} "
2305
2306
-DSWIFT_EMBED_BITCODE_SECTION:BOOL=$( true_false " ${EMBED_BITCODE_SECTION} " )
2306
2307
-DSWIFT_TOOLS_ENABLE_LTO:STRING=" ${SWIFT_TOOLS_ENABLE_LTO} "
2307
2308
-DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER:BOOL=$( true_false " ${BUILD_RUNTIME_WITH_HOST_COMPILER} " )
@@ -2372,13 +2373,6 @@ for host in "${ALL_HOSTS[@]}"; do
2372
2373
)
2373
2374
fi
2374
2375
2375
- if [ " ${SWIFT_INSTALL_COMPONENTS} " ] ; then
2376
- cmake_options=(
2377
- " ${cmake_options[@]} "
2378
- -DSWIFT_INSTALL_COMPONENTS:STRING=" ${SWIFT_INSTALL_COMPONENTS} "
2379
- )
2380
- fi
2381
-
2382
2376
if contains_product " lldb" ; then
2383
2377
lldb_build_dir=$( build_directory ${host} lldb)
2384
2378
cmake_options=(
You can’t perform that action at this time.
0 commit comments