@@ -45,16 +45,14 @@ def test_llvm_windows(self):
4545 env_variables ["project_check_targets" ],
4646 "check-clang check-clang-tools check-lld check-llvm check-mlir check-polly" ,
4747 )
48- self .assertEqual (
49- env_variables ["runtimes_to_build" ], "libcxx;libcxxabi;libunwind"
50- )
48+ self .assertEqual (env_variables ["runtimes_to_build" ], "" )
5149 self .assertEqual (
5250 env_variables ["runtimes_check_targets" ],
5351 "" ,
5452 )
5553 self .assertEqual (
5654 env_variables ["runtimes_check_targets_needs_reconfig" ],
57- "check-cxx check-cxxabi check-unwind " ,
55+ "" ,
5856 )
5957
6058 def test_llvm_mac (self ):
@@ -69,16 +67,14 @@ def test_llvm_mac(self):
6967 env_variables ["project_check_targets" ],
7068 "check-clang check-clang-tools check-lld check-llvm check-mlir" ,
7169 )
72- self .assertEqual (
73- env_variables ["runtimes_to_build" ], "libcxx;libcxxabi;libunwind"
74- )
70+ self .assertEqual (env_variables ["runtimes_to_build" ], "" )
7571 self .assertEqual (
7672 env_variables ["runtimes_check_targets" ],
7773 "" ,
7874 )
7975 self .assertEqual (
8076 env_variables ["runtimes_check_targets_needs_reconfig" ],
81- "check-cxx check-cxxabi check-unwind " ,
77+ "" ,
8278 )
8379
8480 def test_clang (self ):
@@ -119,19 +115,43 @@ def test_clang_windows(self):
119115 self .assertEqual (
120116 env_variables ["project_check_targets" ], "check-clang check-clang-tools"
121117 )
122- self .assertEqual (
123- env_variables ["runtimes_to_build" ], "libcxx;libcxxabi;libunwind"
124- )
118+ self .assertEqual (env_variables ["runtimes_to_build" ], "" )
125119 self .assertEqual (
126120 env_variables ["runtimes_check_targets" ],
127121 "" ,
128122 )
129123 self .assertEqual (
130124 env_variables ["runtimes_check_targets_needs_reconfig" ],
131- "check-cxx check-cxxabi check-unwind " ,
125+ "" ,
132126 )
133127 self .assertEqual (env_variables ["enable_cir" ], "OFF" )
134128
129+ def test_compiler_rt (self ):
130+ env_variables = compute_projects .get_env_variables (
131+ ["compiler-rt/lib/asan/asan_allocator.cpp" ], "Linux"
132+ )
133+ self .assertEqual (
134+ env_variables ["projects_to_build" ],
135+ "clang;lld" ,
136+ )
137+ self .assertEqual (
138+ env_variables ["project_check_targets" ],
139+ "" ,
140+ )
141+ self .assertEqual (env_variables ["runtimes_to_build" ], "compiler-rt" )
142+ self .assertEqual (
143+ env_variables ["runtimes_check_targets" ],
144+ "check-compiler-rt" ,
145+ )
146+ self .assertEqual (
147+ env_variables ["runtimes_check_targets_needs_reconfig" ],
148+ "" ,
149+ )
150+ self .assertEqual (
151+ env_variables ["enable_cir" ],
152+ "OFF" ,
153+ )
154+
135155 def test_cir (self ):
136156 env_variables = compute_projects .get_env_variables (
137157 ["clang/lib/CIR/CMakeLists.txt" ], "Linux"
@@ -298,18 +318,15 @@ def test_windows_ci(self):
298318 )
299319 self .assertEqual (
300320 env_variables ["runtimes_to_build" ],
301- "libcxx;libcxxabi;libunwind " ,
321+ "" ,
302322 )
303323 self .assertEqual (
304324 env_variables ["runtimes_check_targets" ],
305325 "" ,
306326 )
307- # TODO(boomanaiden154): We should not be emitting these on Windows.
308- # It does not currently impact anything because we do not build the
309- # runtimes on Windows though.
310327 self .assertEqual (
311328 env_variables ["runtimes_check_targets_needs_reconfig" ],
312- "check-cxx check-cxxabi check-unwind " ,
329+ "" ,
313330 )
314331
315332 def test_lldb (self ):
0 commit comments