File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -101,19 +101,12 @@ function(add_swift_compiler_modules_library name)
101
101
set (swift_compile_options
102
102
"-color-diagnostics"
103
103
"-Xfrontend" "-validate-tbd-against-ir=none"
104
- "${cxx_interop_flag} "
104
+ "-cxx-interoperability-mode=default "
105
105
"-Xfrontend" "-disable-target-os-checking"
106
106
"-Xcc" "-std=c++17"
107
107
"-Xcc" "-DCOMPILED_WITH_SWIFT" "-Xcc" "-DSWIFT_TARGET"
108
108
"-Xcc" "-UIBOutlet" "-Xcc" "-UIBAction" "-Xcc" "-UIBInspectable" )
109
109
110
- # Prior to 5.9, we have to use the experimental flag for C++ interop.
111
- if (CMAKE_Swift_COMPILER_VERSION VERSION_LESS 5.9 )
112
- list (APPEND swift_compile_options "-Xfrontend" "-enable-experimental-cxx-interop" )
113
- else ()
114
- list (APPEND swift_compile_options "-cxx-interoperability-mode=default" )
115
- endif ()
116
-
117
110
if (NOT BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" )
118
111
if (SWIFT_MIN_RUNTIME_VERSION )
119
112
list (APPEND swift_compile_options
@@ -341,7 +334,7 @@ else()
341
334
message (FATAL_ERROR "The Swift compiler (${CMAKE_Swift_COMPILER} ) differs from the Swift compiler in SWIFT_NATIVE_SWIFT_TOOLS_PATH (${SWIFT_NATIVE_SWIFT_TOOLS_PATH} /swiftc)." )
342
335
endif ()
343
336
344
- set (min_supported_swift_version 5.8 )
337
+ set (min_supported_swift_version 5.9 )
345
338
if (CMAKE_Swift_COMPILER_VERSION VERSION_LESS "${min_supported_swift_version} " )
346
339
message (FATAL_ERROR
347
340
"Outdated Swift compiler: building with host tools requires Swift ${min_supported_swift_version} or newer. "
You can’t perform that action at this time.
0 commit comments