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 @@ -87,6 +87,10 @@ function(add_swift_compiler_modules_library name)
87
87
list (APPEND swift_compile_options "-O" "-cross-module-optimization" )
88
88
endif ()
89
89
90
+ if (NOT SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT )
91
+ list (APPEND swift_compile_options "-Xfrontend" "-disable-legacy-type-info" )
92
+ endif ()
93
+
90
94
get_bootstrapping_path (build_dir ${CMAKE_CURRENT_BINARY_DIR} "${ALS_BOOTSTRAPPING} " )
91
95
92
96
set (sdk_option "" )
@@ -267,7 +271,7 @@ else()
267
271
list (APPEND b1_deps copy-libstdcxx-modulemap-bootstrapping1 copy-libstdcxx-header-bootstrapping1 )
268
272
endif ()
269
273
endif ()
270
- if (SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_DARWIN_PLATFORMS )
274
+ if (SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_DARWIN_PLATFORMS AND SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT )
271
275
set (platform ${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR} )
272
276
set (compatibility_libs
273
277
"swiftCompatibility50-${platform} "
You can’t perform that action at this time.
0 commit comments