Skip to content

Commit 12af0a5

Browse files
committed
Use the directory name, not full directory in SwiftBuildSupport.SWIFT_REPO_NAME
1 parent dfb5e90 commit 12af0a5

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)