Skip to content

Commit 654f088

Browse files
authored
Merge pull request #8455 from hughbe/build-support-fix-meanin
Use the directory name, not full directory in SwiftBuildSupport.SWIFT_REPO_NAME
2 parents a2644a5 + 12af0a5 commit 654f088

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/SwiftBuildSupport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def _get_default_swift_repo_name():
8080
return result
8181
if not os.path.exists(os.path.join(swift_path, 'CMakeLists.txt')):
8282
return result
83-
return swift_path
83+
(_, swift_repo_name) = os.path.split(swift_path)
84+
return swift_repo_name
8485

8586

8687
# Set SWIFT_REPO_NAME in your environment to control the name of the swift

0 commit comments

Comments
 (0)