@@ -39,6 +39,21 @@ REPOSITORIES = {
39
39
'swift-integration-tests' : 'apple/swift-integration-tests' ,
40
40
}
41
41
42
+ MASTER_BRANCHES = {
43
+ 'llvm' : 'stable' ,
44
+ 'clang' : 'stable' ,
45
+ 'swift' : 'master' ,
46
+ 'lldb' : 'master' ,
47
+ 'cmark' : 'master' ,
48
+ 'llbuild' : 'master' ,
49
+ 'swiftpm' : 'master' ,
50
+ 'compiler-rt' : 'stable' ,
51
+ 'swift-corelibs-xctest' : 'master' ,
52
+ 'swift-corelibs-foundation' : 'master' ,
53
+ 'swift-corelibs-libdispatch' : 'master' ,
54
+ 'swift-integration-tests' : 'master' ,
55
+ }
56
+
42
57
NEXT_BRANCHES = {
43
58
'llvm' : 'stable-next' ,
44
59
'clang' : 'stable-next' ,
@@ -48,6 +63,7 @@ NEXT_BRANCHES = {
48
63
'cmark' : 'master' ,
49
64
'llbuild' : 'master' ,
50
65
'swiftpm' : 'master' ,
66
+ 'compiler-rt' : 'stable-next' ,
51
67
'swift-corelibs-xctest' : 'master' ,
52
68
'swift-corelibs-foundation' : 'master' ,
53
69
'swift-corelibs-libdispatch' : 'master' ,
@@ -62,11 +78,11 @@ SWIFT_3_0_PREVIEW_1_BRANCHES = {
62
78
'cmark' : 'swift-3.0-preview-1-branch' ,
63
79
'llbuild' : 'swift-3.0-preview-1-branch' ,
64
80
'swiftpm' : 'swift-3.0-preview-1-branch' ,
81
+ 'compiler-rt' : 'swift-3.0-branch' ,
65
82
'swift-corelibs-xctest' : 'swift-3.0-preview-1-branch' ,
66
83
'swift-corelibs-foundation' : 'swift-3.0-preview-1-branch' ,
67
84
'swift-corelibs-libdispatch' : 'swift-3.0-preview-1-branch' ,
68
85
'swift-integration-tests' : 'swift-3.0-preview-1-branch' ,
69
- 'compiler-rt' : 'swift-3.0-branch' ,
70
86
}
71
87
72
88
@@ -111,7 +127,9 @@ def obtain_additional_swift_sources(
111
127
check_call (['git' , 'clone' , '--recursive' , remote ,
112
128
dir_name ])
113
129
if branch :
114
- if branch == "stable-next" or branch == "master-next" :
130
+ if branch == "master" or branch == "stable" :
131
+ repo_branch = MASTER_BRANCHES [dir_name ]
132
+ elif branch == "stable-next" or branch == "master-next" :
115
133
repo_branch = NEXT_BRANCHES [dir_name ]
116
134
elif branch == "swift-3.0-branch" or \
117
135
branch == "swift-3.0-preview-1-branch" :
@@ -170,7 +188,9 @@ By default, updates your checkouts of Swift, SourceKit, LLDB, and SwiftPM.""")
170
188
print ("--- Skipping '" + dir_name + "' ---" )
171
189
continue
172
190
if branch :
173
- if branch == "stable-next" or branch == "master-next" :
191
+ if branch == "master" or branch == "stable" :
192
+ repo_branch = MASTER_BRANCHES [dir_name ]
193
+ elif branch == "stable-next" or branch == "master-next" :
174
194
repo_branch = NEXT_BRANCHES [dir_name ]
175
195
elif branch == "swift-3.0-branch" or \
176
196
branch == "swift-3.0-preview-1-branch" :
0 commit comments