Skip to content

Commit 147f9ad

Browse files
authored
Merge pull request #956 from tkremenek/swift-3-compat-mode
Force use of Swift 3 compatibility mode to compile sources.
2 parents 3a592cd + fca15da commit 147f9ad

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)