Skip to content

Commit 1bfc02c

Browse files
author
Lance Parker
committed
Force overlays to Swift 4
1 parent 34c5b48 commit 1bfc02c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/modules/SwiftSource.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ function(_compile_swift_files
260260
if (SWIFTFILE_IS_STDLIB)
261261
list(APPEND swift_flags "-swift-version" "3")
262262
endif()
263+
264+
# Force swift 4 compatibility mode for overlays.
265+
if (SWIFTFILE_IS_SDK_OVERLAY)
266+
list(APPEND swift_flags "-swift-version" "4")
267+
endif()
263268

264269
if(SWIFTFILE_IS_SDK_OVERLAY)
265270
list(APPEND swift_flags "-autolink-force-load")

0 commit comments

Comments
 (0)