Skip to content

Commit 3d33f11

Browse files
committed
cmake/build-script: rename the libswift option to "bootstrapping"
In cmake, rename LIBSWIFT_BUILD_MODE to BOOTSTRAPPING_MODE. Also, rename the lit feature "libswift" to "swift_in_compiler".
1 parent ba364a1 commit 3d33f11

33 files changed

+106
-109
lines changed

CMakeLists.txt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,17 @@ set(SWIFT_TOOLS_ENABLE_LTO OFF CACHE STRING "Build Swift tools with LTO. One
187187
option only affects the tools that run on the host (the compiler), and has
188188
no effect on the target libraries (the standard library and the runtime).")
189189

190-
# NOTE: We do not currently support building libswift with the Xcode generator.
191-
cmake_dependent_option(LIBSWIFT_BUILD_MODE [=[
192-
How to build libswift. Possible values are
193-
OFF: the compiler is built without libswift
194-
HOSTTOOLS: libswift is built with a pre-installed toolchain
195-
BOOTSTRAPPING: libswift is built with a 2-stage bootstrapping process
196-
BOOTSTRAPPING-WITH-HOSTLIBS: libswift is built with a 2-stage bootstrapping process,
190+
# NOTE: We do not currently support building the swift compiler modules with the Xcode generator.
191+
cmake_dependent_option(BOOTSTRAPPING_MODE [=[
192+
How to build the swift compiler modules. Possible values are
193+
OFF: build without swift modules
194+
HOSTTOOLS: build with a pre-installed toolchain
195+
BOOTSTRAPPING: build with a 2-stage bootstrapping process
196+
BOOTSTRAPPING-WITH-HOSTLIBS: build with a 2-stage bootstrapping process,
197197
but the compiler links against the host system swift libs (macOS only)
198-
CROSSCOMPILE: libswift is cross-compiled with a native host compiler, provided in
198+
CROSSCOMPILE: cross-compiledwith a native host compiler, provided in
199199
`SWIFT_NATIVE_SWIFT_TOOLS_PATH` (non-Darwin only)
200-
CROSSCOMPILE-WITH-HOSTLIBS: libswift is built with a bootstrapping-with-hostlibs compiled
200+
CROSSCOMPILE-WITH-HOSTLIBS: build with a bootstrapping-with-hostlibs compiled
201201
compiler, provided in `SWIFT_NATIVE_SWIFT_TOOLS_PATH`
202202
]=] OFF "NOT CMAKE_GENERATOR STREQUAL \"Xcode\"" OFF)
203203

@@ -615,24 +615,24 @@ set(SWIFT_RUNTIME_OUTPUT_INTDIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin")
615615
set(SWIFT_LIBRARY_OUTPUT_INTDIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib")
616616
if("${SWIFT_NATIVE_SWIFT_TOOLS_PATH}" STREQUAL "")
617617
set(SWIFT_NATIVE_SWIFT_TOOLS_PATH "${SWIFT_RUNTIME_OUTPUT_INTDIR}")
618-
set(SWIFT_EXEC_FOR_LIBSWIFT "${CMAKE_Swift_COMPILER}")
619-
elseif(LIBSWIFT_BUILD_MODE MATCHES "BOOTSTRAPPING.*")
620-
# If cross-compiling we don't have to bootstrap. We can just use the previously
621-
# built native swiftc to build libswift.
622-
message(STATUS "Building libswift with previously built tools instead of bootstrapping")
623-
set(SWIFT_EXEC_FOR_LIBSWIFT "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc")
624-
if(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
625-
set(LIBSWIFT_BUILD_MODE "CROSSCOMPILE-WITH-HOSTLIBS")
626-
elseif(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING")
627-
set(LIBSWIFT_BUILD_MODE "CROSSCOMPILE")
618+
set(SWIFT_EXEC_FOR_SWIFT_MODULES "${CMAKE_Swift_COMPILER}")
619+
elseif(BOOTSTRAPPING_MODE MATCHES "BOOTSTRAPPING.*")
620+
# If cross-compiling, we don't have to bootstrap. We can just use the previously
621+
# built native swiftc to build the swift compiler modules.
622+
message(STATUS "Building swift modules with previously built tools instead of bootstrapping")
623+
set(SWIFT_EXEC_FOR_SWIFT_MODULES "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc")
624+
if(BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
625+
set(BOOTSTRAPPING_MODE "CROSSCOMPILE-WITH-HOSTLIBS")
626+
elseif(BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING")
627+
set(BOOTSTRAPPING_MODE "CROSSCOMPILE")
628628
else()
629-
set(LIBSWIFT_BUILD_MODE "HOSTTOOLS")
629+
set(BOOTSTRAPPING_MODE "HOSTTOOLS")
630630
endif()
631631
endif()
632632

633-
if(LIBSWIFT_BUILD_MODE MATCHES "HOSTTOOLS|.*-WITH-HOSTLIBS")
633+
if(BOOTSTRAPPING_MODE MATCHES "HOSTTOOLS|.*-WITH-HOSTLIBS")
634634
if(SWIFT_ENABLE_ARRAY_COW_CHECKS)
635-
message(STATUS "array COW checks disabled when building libswift with host libraries")
635+
message(STATUS "array COW checks disabled when building the swift modules with host libraries")
636636
set(SWIFT_ENABLE_ARRAY_COW_CHECKS FALSE)
637637
endif()
638638
endif()
@@ -999,7 +999,7 @@ if(SWIFT_INCLUDE_TOOLS)
999999
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
10001000
message(STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS}")
10011001
message(STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO}")
1002-
message(STATUS " libswift: ${LIBSWIFT_BUILD_MODE}")
1002+
message(STATUS " Bootstrapping: ${BOOTSTRAPPING_MODE}")
10031003
message(STATUS "")
10041004
else()
10051005
message(STATUS "Not building host Swift tools")
@@ -1118,11 +1118,11 @@ add_subdirectory(include)
11181118
if(SWIFT_INCLUDE_TOOLS)
11191119
add_subdirectory(lib)
11201120

1121-
# "libswift" must come before "tools".
1122-
# It adds libswift module names to the global property "libswift_modules"
1121+
# SwiftCompilerSources must come before "tools".
1122+
# It adds swift module names to the global property "swift_compiler_modules"
11231123
# which is used in add_swift_host_tool for the lldb workaround.
11241124
#
1125-
# NOTE: We do not currently support libswift with the Xcode generator.
1125+
# NOTE: We do not currently support SwiftCompilerSources with the Xcode generator.
11261126
add_subdirectory(SwiftCompilerSources)
11271127

11281128
# Always include this after including stdlib/!

SwiftCompilerSources/CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ function(add_swift_compiler_modules_library name)
9292
set(deployment_version "10.15") # TODO: once #38675 lands, replace this with
9393
# set(deployment_version "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_DEPLOYMENT_VERSION}")
9494
set(sdk_option "-sdk" "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_ARCH_${SWIFT_HOST_VARIANT_ARCH}_PATH}")
95-
if(${LIBSWIFT_BUILD_MODE} STREQUAL "CROSSCOMPILE-WITH-HOSTLIBS")
95+
if(${BOOTSTRAPPING_MODE} STREQUAL "CROSSCOMPILE-WITH-HOSTLIBS")
9696
# Let the cross-compiled compile don't pick up the compiled stdlib by providing
9797
# an (almost) empty resource dir.
9898
# The compiler will instead pick up the stdlib from the SDK.
9999
get_filename_component(swift_exec_bin_dir ${ALS_SWIFT_EXEC} DIRECTORY)
100100
set(sdk_option ${sdk_option} "-resource-dir" "${swift_exec_bin_dir}/../bootstrapping0/lib/swift")
101101
endif()
102-
elseif(${LIBSWIFT_BUILD_MODE} STREQUAL "CROSSCOMPILE")
102+
elseif(${BOOTSTRAPPING_MODE} STREQUAL "CROSSCOMPILE")
103103
set(sdk_option "-sdk" "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_ARCH_${SWIFT_HOST_VARIANT_ARCH}_PATH}")
104104
get_filename_component(swift_exec_bin_dir ${ALS_SWIFT_EXEC} DIRECTORY)
105105
set(sdk_option ${sdk_option} "-resource-dir" "${swift_exec_bin_dir}/../lib/swift")
@@ -160,7 +160,7 @@ endfunction()
160160
# A dummy library if swift in the compiler is disabled
161161
add_swift_host_library(swiftCompilerStub OBJECT stubs.cpp)
162162

163-
if (NOT LIBSWIFT_BUILD_MODE)
163+
if (NOT BOOTSTRAPPING_MODE)
164164

165165
add_library(swiftCompilerModules ALIAS swiftCompilerStub)
166166

@@ -171,20 +171,20 @@ else()
171171

172172
add_subdirectory(Sources)
173173

174-
if(${LIBSWIFT_BUILD_MODE} MATCHES "HOSTTOOLS|CROSSCOMPILE")
174+
if(${BOOTSTRAPPING_MODE} MATCHES "HOSTTOOLS|CROSSCOMPILE")
175175

176-
if (NOT SWIFT_EXEC_FOR_LIBSWIFT)
176+
if (NOT SWIFT_EXEC_FOR_SWIFT_MODULES)
177177
message(FATAL_ERROR "Need a swift toolchain building swift compiler sources")
178178
endif()
179179

180180
add_swift_compiler_modules_library(swiftCompilerModules
181-
SWIFT_EXEC "${SWIFT_EXEC_FOR_LIBSWIFT}")
181+
SWIFT_EXEC "${SWIFT_EXEC_FOR_SWIFT_MODULES}")
182182

183-
elseif(${LIBSWIFT_BUILD_MODE} MATCHES "BOOTSTRAPPING.*")
183+
elseif(${BOOTSTRAPPING_MODE} MATCHES "BOOTSTRAPPING.*")
184184

185185
set(b0_deps swift-frontend-bootstrapping0 symlink-headers-bootstrapping0)
186186
set(b1_deps swift-frontend-bootstrapping1 symlink-headers-bootstrapping1)
187-
if(${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING")
187+
if(${BOOTSTRAPPING_MODE} STREQUAL "BOOTSTRAPPING")
188188
list(APPEND b0_deps swiftCore-bootstrapping0)
189189
list(APPEND b1_deps swiftCore-bootstrapping1)
190190
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
@@ -221,15 +221,15 @@ else()
221221
SWIFT_EXEC $<TARGET_FILE_DIR:swift-frontend-bootstrapping1>/swiftc${CMAKE_EXECUTABLE_SUFFIX}
222222
DEPENDS ${b1_deps})
223223

224-
if(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
224+
if(BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
225225
file(GLOB module_dirs "${CMAKE_BINARY_DIR}/bootstrapping*/lib/swift/macosx/*.swiftmodule")
226226
foreach(module_dir ${module_dirs})
227227
message(WARNING "${module_dir} found from a previous 'bootstrapping' build: removing")
228228
file(REMOVE_RECURSE "${module_dir}")
229229
endforeach()
230230
endif()
231231
else()
232-
message(FATAL_ERROR "Unknown LIBSWIFT_BUILD_MODE '${LIBSWIFT_BUILD_MODE}'")
232+
message(FATAL_ERROR "Unknown BOOTSTRAPPING_MODE '${BOOTSTRAPPING_MODE}'")
233233
endif()
234234

235235
endif()

cmake/modules/AddSwift.cmake

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ macro(add_swift_lib_subdirectory name)
630630
endmacro()
631631
632632
function(add_swift_host_tool executable)
633-
set(options HAS_LIBSWIFT)
633+
set(options HAS_SWIFT_MODULES)
634634
set(single_parameter_options SWIFT_COMPONENT BOOTSTRAPPING)
635635
set(multiple_parameter_options LLVM_LINK_COMPONENTS)
636636
@@ -696,11 +696,11 @@ function(add_swift_host_tool executable)
696696
# If we found a swift compiler and are going to use swift code in swift
697697
# host side tools but link with clang, add the appropriate -L paths so we
698698
# find all of the necessary swift libraries on Darwin.
699-
if (ASHT_HAS_LIBSWIFT AND LIBSWIFT_BUILD_MODE)
699+
if (ASHT_HAS_SWIFT_MODULES AND BOOTSTRAPPING_MODE)
700700
701-
if(LIBSWIFT_BUILD_MODE STREQUAL "HOSTTOOLS")
701+
if(BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS")
702702
# Add in the toolchain directory so we can grab compatibility libraries
703-
get_filename_component(TOOLCHAIN_BIN_DIR ${SWIFT_EXEC_FOR_LIBSWIFT} DIRECTORY)
703+
get_filename_component(TOOLCHAIN_BIN_DIR ${SWIFT_EXEC_FOR_SWIFT_MODULES} DIRECTORY)
704704
get_filename_component(TOOLCHAIN_LIB_DIR "${TOOLCHAIN_BIN_DIR}/../lib/swift/macosx" ABSOLUTE)
705705
target_link_directories(${executable} PUBLIC ${TOOLCHAIN_LIB_DIR})
706706
@@ -710,7 +710,7 @@ function(add_swift_host_tool executable)
710710
# Include the abi stable system stdlib in our rpath.
711711
list(APPEND RPATH_LIST "/usr/lib/swift")
712712
713-
elseif(LIBSWIFT_BUILD_MODE STREQUAL "CROSSCOMPILE-WITH-HOSTLIBS")
713+
elseif(BOOTSTRAPPING_MODE STREQUAL "CROSSCOMPILE-WITH-HOSTLIBS")
714714
715715
# Intentinally don't add the lib dir of the cross-compiled compiler, so that
716716
# the stdlib is not picked up from there, but from the SDK.
@@ -726,7 +726,7 @@ function(add_swift_host_tool executable)
726726
# Include the abi stable system stdlib in our rpath.
727727
list(APPEND RPATH_LIST "/usr/lib/swift")
728728
729-
elseif(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
729+
elseif(BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
730730
# Add the SDK directory for the host platform.
731731
target_link_directories(${executable} PRIVATE "${sdk_dir}")
732732
@@ -737,7 +737,7 @@ function(add_swift_host_tool executable)
737737
# Include the abi stable system stdlib in our rpath.
738738
list(APPEND RPATH_LIST "/usr/lib/swift")
739739
740-
elseif(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING")
740+
elseif(BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING")
741741
# At build time link against the built swift libraries from the
742742
# previous bootstrapping stage.
743743
get_bootstrapping_swift_lib_dir(bs_lib_dir "${ASHT_BOOTSTRAPPING}")
@@ -751,7 +751,7 @@ function(add_swift_host_tool executable)
751751
# bootstrapping stage.
752752
list(APPEND RPATH_LIST "@executable_path/../lib/swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}")
753753
else()
754-
message(FATAL_ERROR "Unknown LIBSWIFT_BUILD_MODE '${LIBSWIFT_BUILD_MODE}'")
754+
message(FATAL_ERROR "Unknown BOOTSTRAPPING_MODE '${BOOTSTRAPPING_MODE}'")
755755
endif()
756756
757757
# Workaround to make lldb happy: we have to explicitly add all swift compiler modules
@@ -770,26 +770,26 @@ function(add_swift_host_tool executable)
770770
set_property(TARGET ${executable} APPEND_STRING PROPERTY
771771
LINK_FLAGS " -lobjc ")
772772
773-
endif() # ASHT_HAS_LIBSWIFT AND LIBSWIFT_BUILD_MODE
773+
endif() # ASHT_HAS_SWIFT_MODULES AND BOOTSTRAPPING_MODE
774774
775775
set_target_properties(${executable} PROPERTIES
776776
BUILD_WITH_INSTALL_RPATH YES
777777
INSTALL_RPATH "${RPATH_LIST}")
778778
779-
elseif(SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID|OPENBSD" AND ASHT_HAS_LIBSWIFT AND LIBSWIFT_BUILD_MODE)
779+
elseif(SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID|OPENBSD" AND ASHT_HAS_SWIFT_MODULES AND BOOTSTRAPPING_MODE)
780780
set(swiftrt "swiftImageRegistrationObject${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_OBJECT_FORMAT}-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}-${SWIFT_HOST_VARIANT_ARCH}")
781-
if(${LIBSWIFT_BUILD_MODE} MATCHES "HOSTTOOLS|CROSSCOMPILE")
781+
if(${BOOTSTRAPPING_MODE} MATCHES "HOSTTOOLS|CROSSCOMPILE")
782782
# At build time and and run time, link against the swift libraries in the
783783
# installed host toolchain.
784-
get_filename_component(swift_bin_dir ${SWIFT_EXEC_FOR_LIBSWIFT} DIRECTORY)
784+
get_filename_component(swift_bin_dir ${SWIFT_EXEC_FOR_SWIFT_MODULES} DIRECTORY)
785785
get_filename_component(swift_dir ${swift_bin_dir} DIRECTORY)
786786
set(host_lib_dir "${swift_dir}/lib/swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}")
787787
788788
target_link_libraries(${executable} PRIVATE ${swiftrt})
789789
target_link_libraries(${executable} PRIVATE "swiftCore")
790790
791791
target_link_directories(${executable} PRIVATE ${host_lib_dir})
792-
if(LIBSWIFT_BUILD_MODE STREQUAL "HOSTTOOLS")
792+
if(BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS")
793793
set_target_properties(${executable} PROPERTIES
794794
BUILD_WITH_INSTALL_RPATH YES
795795
INSTALL_RPATH "${host_lib_dir}")
@@ -799,7 +799,7 @@ function(add_swift_host_tool executable)
799799
INSTALL_RPATH "$ORIGIN/../lib/swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}")
800800
endif()
801801
802-
elseif(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING")
802+
elseif(BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING")
803803
# At build time link against the built swift libraries from the
804804
# previous bootstrapping stage.
805805
if (NOT "${ASHT_BOOTSTRAPPING}" STREQUAL "0")
@@ -815,10 +815,10 @@ function(add_swift_host_tool executable)
815815
BUILD_WITH_INSTALL_RPATH YES
816816
INSTALL_RPATH "$ORIGIN/../lib/swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}")
817817
818-
elseif(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
819-
message(FATAL_ERROR "LIBSWIFT_BUILD_MODE 'BOOTSTRAPPING-WITH-HOSTLIBS' not supported on Linux")
818+
elseif(BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
819+
message(FATAL_ERROR "BOOTSTRAPPING_MODE 'BOOTSTRAPPING-WITH-HOSTLIBS' not supported on Linux")
820820
else()
821-
message(FATAL_ERROR "Unknown LIBSWIFT_BUILD_MODE '${LIBSWIFT_BUILD_MODE}'")
821+
message(FATAL_ERROR "Unknown BOOTSTRAPPING_MODE '${BOOTSTRAPPING_MODE}'")
822822
endif()
823823
endif()
824824

cmake/modules/SwiftConfig.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set(SWIFT_LIBRARY_DIR "@SWIFT_LIBRARY_DIRS@")
1717
set(SWIFT_CMAKE_DIR "@SWIFT_CMAKE_DIR@")
1818
set(SWIFT_BINARY_DIR "@SWIFT_BINARY_DIR@")
1919

20-
set(LIBSWIFT_BUILD_MODE "@LIBSWIFT_BUILD_MODE@")
20+
set(BOOTSTRAPPING_MODE "@BOOTSTRAPPING_MODE@")
2121

2222
set(CMARK_TARGETS_FILE @SWIFT_PATH_TO_CMARK_BUILD@/src/cmarkTargets.cmake)
2323
if(NOT TARGET libcmark_static AND EXISTS ${CMARK_TARGETS_FILE})

cmake/modules/SwiftUtils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ endfunction()
9696
# from the previous bootstrapping stage.
9797
function(get_bootstrapping_swift_lib_dir bs_lib_dir bootstrapping)
9898
set(bs_lib_dir "")
99-
if(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING")
99+
if(BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING")
100100
set(lib_dir
101101
"${SWIFTLIB_DIR}/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}")
102102
# If building the stdlib with bootstrapping, the compiler has to pick up

stdlib/public/Platform/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ set(swiftDarwin_common_options
4242
DEPENDS ${darwin_depends})
4343

4444

45-
if(${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING" AND
45+
if(${BOOTSTRAPPING_MODE} STREQUAL "BOOTSTRAPPING" AND
4646
${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_DARWIN_PLATFORMS)
4747

4848
set(swiftDarwin_common_bootstrapping_options

stdlib/public/SwiftOnoneSupport/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set(swiftOnoneSupport_common_options
1010
SWIFT_COMPILE_FLAGS "-parse-stdlib" "-Xllvm" "-sil-inline-generics=false" "-Xfrontend" "-validate-tbd-against-ir=none" "-Xfrontend" "-check-onone-completeness" "-Xfrontend" "-disable-access-control" "${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS}" "${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}"
1111
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}")
1212

13-
if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND ${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING")
13+
if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND ${BOOTSTRAPPING_MODE} STREQUAL "BOOTSTRAPPING")
1414

1515
set(swiftOnoneSupport_common_bootstrapping_options
1616
SHARED

stdlib/public/SwiftShims/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ if(NOT SWIFT_BUILT_STANDALONE)
155155
endforeach()
156156
endif()
157157

158-
if(${LIBSWIFT_BUILD_MODE} MATCHES "BOOTSTRAPPING.*")
158+
if(${BOOTSTRAPPING_MODE} MATCHES "BOOTSTRAPPING.*")
159159
foreach(bootstrapping "0" "1")
160160
get_bootstrapping_path(outdir ${SWIFTLIB_DIR} ${bootstrapping})
161161
set(target_name "symlink-headers-bootstrapping${bootstrapping}")

stdlib/public/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ set(swiftCore_common_options
315315
set(swiftCore_common_dependencies
316316
copy_shim_headers "${SWIFTLIB_DIR}/shims" ${GROUP_INFO_JSON_FILE})
317317

318-
if(${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING")
318+
if(${BOOTSTRAPPING_MODE} STREQUAL "BOOTSTRAPPING")
319319

320320
set(b0_deps symlink-headers-bootstrapping0)
321321
set(b1_deps symlink-headers-bootstrapping1)

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ if(NOT CMAKE_CFG_INTDIR STREQUAL ".")
173173
"--param" "build_mode=${CMAKE_CFG_INTDIR}")
174174
endif()
175175

176-
if (LIBSWIFT_BUILD_MODE)
176+
if (BOOTSTRAPPING_MODE)
177177
list(APPEND SWIFT_LIT_ARGS
178-
"--param" "libswift_build_mode=${LIBSWIFT_BUILD_MODE}")
178+
"--param" "bootstrapping_mode=${BOOTSTRAPPING_MODE}")
179179
endif()
180180

181181
if (LLVM_USE_SANITIZER STREQUAL "Address")

0 commit comments

Comments
 (0)