Merge pull request #8455 from hughbe/build-support-fix-meanin

Use the directory name, not full directory in SwiftBuildSupport.SWIFT_REPO_NAME
diff --git a/utils/SwiftBuildSupport.py b/utils/SwiftBuildSupport.py
index 73cfed2..33383ca 100644
--- a/utils/SwiftBuildSupport.py
+++ b/utils/SwiftBuildSupport.py
@@ -80,7 +80,8 @@
         return result
     if not os.path.exists(os.path.join(swift_path, 'CMakeLists.txt')):
         return result
-    return swift_path
+    (_, swift_repo_name) = os.path.split(swift_path)
+    return swift_repo_name
 
 
 # Set SWIFT_REPO_NAME in your environment to control the name of the swift