Skip to content

Commit acbe1eb

Browse files
committed
CMake: Specify modern Cxx interop flag when build SwiftCompilerSources.
Now that swift-ci builds with a Swift 5.9 or later Swift toolchain, we can specify the `-cxx-interoperability-mode` flag instead of the deprecated `-enable-experimental-cxx-interop` flag.
1 parent 7685371 commit acbe1eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SwiftCompilerSources/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function(add_swift_compiler_modules_library name)
101101
set(swift_compile_options
102102
"-color-diagnostics"
103103
"-Xfrontend" "-validate-tbd-against-ir=none"
104-
"-Xfrontend" "-enable-experimental-cxx-interop"
104+
"-cxx-interoperability-mode=default"
105105
"-Xfrontend" "-disable-target-os-checking"
106106
"-Xcc" "-std=c++17"
107107
"-Xcc" "-DCOMPILED_WITH_SWIFT" "-Xcc" "-DSWIFT_TARGET"

0 commit comments

Comments
 (0)