File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ function(add_swift_compiler_modules_library name)
8383 list (APPEND swift_compile_options "-O" "-cross-module-optimization" )
8484 endif ()
8585
86+ if (NOT SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT)
87+ list (APPEND swift_compile_options "-Xfrontend" "-disable-legacy-type-info" )
88+ endif ()
89+
8690 get_bootstrapping_path(build_dir ${CMAKE_CURRENT_BINARY_DIR} "${ALS_BOOTSTRAPPING} " )
8791
8892 set (sdk_option "" )
@@ -230,7 +234,7 @@ else()
230234 list (APPEND b1_deps copy-libstdcxx-modulemap-bootstrapping1 copy-libstdcxx-header-bootstrapping1)
231235 endif ()
232236 endif ()
233- if (SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_DARWIN_PLATFORMS)
237+ if (SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_DARWIN_PLATFORMS AND SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT )
234238 set (platform ${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK} _LIB_SUBDIR})
235239 set (compatibility_libs
236240 "swiftCompatibility50-${platform} "
You can’t perform that action at this time.
0 commit comments