@@ -110,15 +110,15 @@ def test_clang_windows(self):
110110 ["clang/CMakeLists.txt" ], "Windows"
111111 )
112112 self .assertEqual (
113- env_variables ["projects_to_build" ], "clang;clang-tools-extra;llvm"
113+ env_variables ["projects_to_build" ], "clang;clang-tools-extra;lld; llvm"
114114 )
115115 self .assertEqual (
116116 env_variables ["project_check_targets" ], "check-clang check-clang-tools"
117117 )
118- self .assertEqual (env_variables ["runtimes_to_build" ], "" )
118+ self .assertEqual (env_variables ["runtimes_to_build" ], "compiler-rt " )
119119 self .assertEqual (
120120 env_variables ["runtimes_check_targets" ],
121- "" ,
121+ "check-compiler-rt " ,
122122 )
123123 self .assertEqual (
124124 env_variables ["runtimes_check_targets_needs_reconfig" ],
@@ -216,8 +216,8 @@ def test_flang(self):
216216 )
217217 self .assertEqual (env_variables ["projects_to_build" ], "clang;flang;llvm" )
218218 self .assertEqual (env_variables ["project_check_targets" ], "check-flang" )
219- self .assertEqual (env_variables ["runtimes_to_build" ], "" )
220- self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
219+ self .assertEqual (env_variables ["runtimes_to_build" ], "flang-rt " )
220+ self .assertEqual (env_variables ["runtimes_check_targets" ], "check-flang-rt " )
221221 self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
222222 self .assertEqual (env_variables ["enable_cir" ], "OFF" )
223223
@@ -293,11 +293,11 @@ def test_ci(self):
293293 )
294294 self .assertEqual (
295295 env_variables ["runtimes_to_build" ],
296- "compiler-rt;libc;libcxx;libcxxabi;libunwind" ,
296+ "compiler-rt;flang-rt; libc;libcxx;libcxxabi;libunwind" ,
297297 )
298298 self .assertEqual (
299299 env_variables ["runtimes_check_targets" ],
300- "check-compiler-rt check-libc" ,
300+ "check-compiler-rt check-flang-rt check- libc" ,
301301 )
302302 self .assertEqual (
303303 env_variables ["runtimes_check_targets_needs_reconfig" ],
@@ -318,11 +318,11 @@ def test_windows_ci(self):
318318 )
319319 self .assertEqual (
320320 env_variables ["runtimes_to_build" ],
321- "" ,
321+ "compiler-rt " ,
322322 )
323323 self .assertEqual (
324324 env_variables ["runtimes_check_targets" ],
325- "" ,
325+ "check-compiler-rt " ,
326326 )
327327 self .assertEqual (
328328 env_variables ["runtimes_check_targets_needs_reconfig" ],
@@ -367,11 +367,11 @@ def test_premerge_workflow(self):
367367 )
368368 self .assertEqual (
369369 env_variables ["runtimes_to_build" ],
370- "compiler-rt;libc;libcxx;libcxxabi;libunwind" ,
370+ "compiler-rt;flang-rt; libc;libcxx;libcxxabi;libunwind" ,
371371 )
372372 self .assertEqual (
373373 env_variables ["runtimes_check_targets" ],
374- "check-compiler-rt check-libc" ,
374+ "check-compiler-rt check-flang-rt check- libc" ,
375375 )
376376 self .assertEqual (
377377 env_variables ["runtimes_check_targets_needs_reconfig" ],
@@ -402,11 +402,35 @@ def test_third_party_benchmark(self):
402402 )
403403 self .assertEqual (
404404 env_variables ["runtimes_to_build" ],
405- "compiler-rt;libc;libcxx;libcxxabi;libunwind" ,
405+ "compiler-rt;flang-rt; libc;libcxx;libcxxabi;libunwind" ,
406406 )
407407 self .assertEqual (
408408 env_variables ["runtimes_check_targets" ],
409- "check-compiler-rt check-libc" ,
409+ "check-compiler-rt check-flang-rt check-libc" ,
410+ )
411+ self .assertEqual (
412+ env_variables ["runtimes_check_targets_needs_reconfig" ],
413+ "check-cxx check-cxxabi check-unwind" ,
414+ )
415+
416+ def test_lit (self ):
417+ env_variables = compute_projects .get_env_variables (
418+ ["llvm/utils/lit/CMakeLists.txt" ], "Linux"
419+ )
420+ self .assertEqual (
421+ env_variables ["projects_to_build" ],
422+ "bolt;clang;clang-tools-extra;flang;lld;lldb;llvm;mlir;polly" ,
423+ )
424+ self .assertEqual (
425+ env_variables ["project_check_targets" ],
426+ "check-bolt check-clang check-clang-tools check-flang check-lit check-lld check-lldb check-llvm check-mlir check-polly" ,
427+ )
428+ self .assertEqual (
429+ env_variables ["runtimes_to_build" ], "libcxx;libcxxabi;libunwind"
430+ )
431+ self .assertEqual (
432+ env_variables ["runtimes_check_targets" ],
433+ "" ,
410434 )
411435 self .assertEqual (
412436 env_variables ["runtimes_check_targets_needs_reconfig" ],
0 commit comments