We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be3a7da commit 31aeb26Copy full SHA for 31aeb26
1 file changed
waftools/detections/compiler_swift.py
@@ -15,7 +15,7 @@ def __add_swift_flags(ctx):
15
ctx.env.SWIFT_FLAGS = ('-frontend -c -sdk %s -enable-objc-interop -emit-objc-header'
16
' -emit-module -parse-as-library') % (ctx.env.MACOS_SDK)
17
swift_version = __run(ctx.env.SWIFT + ' -version').split(' ')[3].split('.')
18
- major, minor, sub = [int(n) for n in swift_version]
+ major, minor = [int(n) for n in swift_version]
19
20
# the -swift-version parameter is only supported on swift 3.1 and newer
21
if major >= 3 and minor >= 1 or major >= 4:
0 commit comments