Skip to content

Commit 0a39c97

Browse files
authored
Merge pull request #972 from tkremenek/tests-as-swift-3
Force tests to build as Swift 3.
2 parents 8c2558d + 72d9ff3 commit 0a39c97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/phases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,10 @@ def generate(self):
431431
if resource is None:
432432
continue
433433
swiftSources += " " + resource.relative()
434-
434+
# Note: Fix -swift-version 3 for now.
435435
return """
436436
build """ + appName + """: SwiftExecutable """ + swiftSources + self.generate_dependencies(libDependencyName) + """
437-
flags = -I""" + Configuration.current.build_directory.path_by_appending(self.product.name).relative() + self.product.ROOT_HEADERS_FOLDER_PATH + " -I" + Configuration.current.build_directory.path_by_appending(self.product.name).relative() + " -L" + Configuration.current.build_directory.path_by_appending(self.product.name).relative() + " " + TargetConditional.value(self.product.SWIFTCFLAGS) + """
437+
flags = -swift-version 3 -I""" + Configuration.current.build_directory.path_by_appending(self.product.name).relative() + self.product.ROOT_HEADERS_FOLDER_PATH + " -I" + Configuration.current.build_directory.path_by_appending(self.product.name).relative() + " -L" + Configuration.current.build_directory.path_by_appending(self.product.name).relative() + " " + TargetConditional.value(self.product.SWIFTCFLAGS) + """
438438
build """ + self.executableName + """: phony | """ + appName + """
439439
"""
440440

0 commit comments

Comments
 (0)