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)
83
83
list (APPEND swift_compile_options "-O" "-cross-module-optimization" )
84
84
endif ()
85
85
86
+ if (NOT SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT )
87
+ list (APPEND swift_compile_options "-Xfrontend" "-disable-legacy-type-info" )
88
+ endif ()
89
+
86
90
get_bootstrapping_path (build_dir ${CMAKE_CURRENT_BINARY_DIR} "${ALS_BOOTSTRAPPING} " )
87
91
88
92
set (sdk_option "" )
@@ -230,7 +234,7 @@ else()
230
234
list (APPEND b1_deps copy-libstdcxx-modulemap-bootstrapping1 copy-libstdcxx-header-bootstrapping1 )
231
235
endif ()
232
236
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 )
234
238
set (platform ${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR} )
235
239
set (compatibility_libs
236
240
"swiftCompatibility50-${platform} "
You can’t perform that action at this time.
0 commit comments