Skip to content

Commit f96ffd8

Browse files
author
Clack Cole
committed
Relax the swift version check
Only check the swiftlang/clang versions, don't fail the check if the Target info doesn't match.
1 parent 6cb5438 commit f96ffd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_precommit_check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def is_correct_swift_version(swiftc, compatibility_version):
145145
error_msg = "error: please select {description}".format(
146146
description=supported_configs[platform.system()][compatibility_version]['description']
147147
)
148-
if swift_version != expected_swift_version:
148+
if swift_version.split("\n")[0] != expected_swift_version.split("\n")[0]:
149149
common.debug_print("--- Version check failed ---")
150150
common.debug_print("Expected version:\n" + expected_swift_version)
151151
common.debug_print("Current version:\n" + swift_version)

0 commit comments

Comments
 (0)