@@ -26,6 +26,10 @@ def test_llvm(self):
2626 )
2727 self .assertEqual (
2828 env_variables ["runtimes_check_targets" ],
29+ "" ,
30+ )
31+ self .assertEqual (
32+ env_variables ["runtimes_check_targets_needs_reconfig" ],
2933 "check-cxx check-cxxabi check-unwind" ,
3034 )
3135
@@ -46,6 +50,10 @@ def test_llvm_windows(self):
4650 )
4751 self .assertEqual (
4852 env_variables ["runtimes_check_targets" ],
53+ "" ,
54+ )
55+ self .assertEqual (
56+ env_variables ["runtimes_check_targets_needs_reconfig" ],
4957 "check-cxx check-cxxabi check-unwind" ,
5058 )
5159
@@ -66,6 +74,10 @@ def test_llvm_mac(self):
6674 )
6775 self .assertEqual (
6876 env_variables ["runtimes_check_targets" ],
77+ "" ,
78+ )
79+ self .assertEqual (
80+ env_variables ["runtimes_check_targets_needs_reconfig" ],
6981 "check-cxx check-cxxabi check-unwind" ,
7082 )
7183
@@ -75,17 +87,21 @@ def test_clang(self):
7587 )
7688 self .assertEqual (
7789 env_variables ["projects_to_build" ],
78- "clang;clang-tools-extra;compiler-rt; lld;llvm" ,
90+ "clang;clang-tools-extra;lld;llvm" ,
7991 )
8092 self .assertEqual (
8193 env_variables ["project_check_targets" ],
82- "check-clang check-clang-tools check-compiler-rt " ,
94+ "check-clang check-clang-tools" ,
8395 )
8496 self .assertEqual (
85- env_variables ["runtimes_to_build" ], "libcxx;libcxxabi;libunwind"
97+ env_variables ["runtimes_to_build" ], "compiler-rt; libcxx;libcxxabi;libunwind"
8698 )
8799 self .assertEqual (
88100 env_variables ["runtimes_check_targets" ],
101+ "check-compiler-rt" ,
102+ )
103+ self .assertEqual (
104+ env_variables ["runtimes_check_targets_needs_reconfig" ],
89105 "check-cxx check-cxxabi check-unwind" ,
90106 )
91107
@@ -104,6 +120,10 @@ def test_clang_windows(self):
104120 )
105121 self .assertEqual (
106122 env_variables ["runtimes_check_targets" ],
123+ "" ,
124+ )
125+ self .assertEqual (
126+ env_variables ["runtimes_check_targets_needs_reconfig" ],
107127 "check-cxx check-cxxabi check-unwind" ,
108128 )
109129
@@ -115,6 +135,7 @@ def test_bolt(self):
115135 self .assertEqual (env_variables ["project_check_targets" ], "check-bolt" )
116136 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
117137 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
138+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
118139
119140 def test_lldb (self ):
120141 env_variables = compute_projects .get_env_variables (
@@ -124,6 +145,7 @@ def test_lldb(self):
124145 self .assertEqual (env_variables ["project_check_targets" ], "check-lldb" )
125146 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
126147 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
148+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
127149
128150 def test_mlir (self ):
129151 env_variables = compute_projects .get_env_variables (
@@ -135,6 +157,7 @@ def test_mlir(self):
135157 )
136158 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
137159 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
160+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
138161
139162 def test_flang (self ):
140163 env_variables = compute_projects .get_env_variables (
@@ -144,6 +167,7 @@ def test_flang(self):
144167 self .assertEqual (env_variables ["project_check_targets" ], "check-flang" )
145168 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
146169 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
170+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
147171
148172 def test_invalid_subproject (self ):
149173 env_variables = compute_projects .get_env_variables (
@@ -153,13 +177,15 @@ def test_invalid_subproject(self):
153177 self .assertEqual (env_variables ["project_check_targets" ], "" )
154178 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
155179 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
180+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
156181
157182 def test_top_level_file (self ):
158183 env_variables = compute_projects .get_env_variables (["README.md" ], "Linux" )
159184 self .assertEqual (env_variables ["projects_to_build" ], "" )
160185 self .assertEqual (env_variables ["project_check_targets" ], "" )
161186 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
162187 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
188+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
163189
164190 def test_exclude_runtiems_in_projects (self ):
165191 env_variables = compute_projects .get_env_variables (
@@ -169,6 +195,7 @@ def test_exclude_runtiems_in_projects(self):
169195 self .assertEqual (env_variables ["project_check_targets" ], "" )
170196 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
171197 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
198+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
172199
173200 def test_exclude_docs (self ):
174201 env_variables = compute_projects .get_env_variables (
@@ -178,6 +205,7 @@ def test_exclude_docs(self):
178205 self .assertEqual (env_variables ["project_check_targets" ], "" )
179206 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
180207 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
208+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
181209
182210 def test_exclude_gn (self ):
183211 env_variables = compute_projects .get_env_variables (
@@ -187,21 +215,30 @@ def test_exclude_gn(self):
187215 self .assertEqual (env_variables ["project_check_targets" ], "" )
188216 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
189217 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
218+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
190219
191220 def test_ci (self ):
192221 env_variables = compute_projects .get_env_variables (
193222 [".ci/compute_projects.py" ], "Linux"
194223 )
195- self .assertEqual (env_variables ["projects_to_build" ], "clang;lld;lldb;llvm" )
224+ self .assertEqual (
225+ env_variables ["projects_to_build" ],
226+ "bolt;clang;clang-tools-extra;flang;lld;lldb;llvm;mlir;polly" ,
227+ )
196228 self .assertEqual (
197229 env_variables ["project_check_targets" ],
198- "check-clang check-lld check-lldb check-llvm" ,
230+ "check-bolt check- clang check-clang-tools check-flang check- lld check-lldb check-llvm check-mlir check-polly " ,
199231 )
200232 self .assertEqual (
201- env_variables ["runtimes_to_build" ], "libcxx;libcxxabi;libunwind"
233+ env_variables ["runtimes_to_build" ],
234+ "compiler-rt;libc;libcxx;libcxxabi;libunwind" ,
202235 )
203236 self .assertEqual (
204237 env_variables ["runtimes_check_targets" ],
238+ "check-compiler-rt check-libc" ,
239+ )
240+ self .assertEqual (
241+ env_variables ["runtimes_check_targets_needs_reconfig" ],
205242 "check-cxx check-cxxabi check-unwind" ,
206243 )
207244
@@ -215,6 +252,19 @@ def test_lldb(self):
215252 env_variables ["runtimes_to_build" ], "libcxx;libcxxabi;libunwind"
216253 )
217254 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
255+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
256+
257+ def test_clang_tools_extra (self ):
258+ env_variables = compute_projects .get_env_variables (
259+ ["clang-tools-extra/CMakeLists.txt" ], "Linux"
260+ )
261+ self .assertEqual (
262+ env_variables ["projects_to_build" ], "clang;clang-tools-extra;lld;llvm"
263+ )
264+ self .assertEqual (env_variables ["project_check_targets" ], "check-clang-tools" )
265+ self .assertEqual (env_variables ["runtimes_to_build" ], "libc" )
266+ self .assertEqual (env_variables ["runtimes_check_targets" ], "check-libc" )
267+ self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
218268
219269
220270if __name__ == "__main__" :
0 commit comments