Skip to content

Commit fca15da

Browse files
committed
Force use of Swift 3 compatibility mode to compile sources.
1 parent 5ade1d2 commit fca15da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/phases.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ def generate(self):
172172
generated += " -I" + Configuration.current.build_directory.path_by_appending(self.product.name).relative() + self.product.ROOT_HEADERS_FOLDER_PATH
173173
generated += " -I" + Configuration.current.build_directory.relative()
174174
swiftflags = TargetConditional.value(self.product.SWIFTCFLAGS)
175+
# Force building in Swift 3 compatibility mode.
176+
swiftflags += " -swift-version 3"
175177
if swiftflags is not None:
176178
generated += " " + swiftflags
177179
return generated

0 commit comments

Comments
 (0)