@@ -104,6 +104,10 @@ def test_clang(self):
104104 env_variables ["runtimes_check_targets_needs_reconfig" ],
105105 "check-cxx check-cxxabi check-unwind" ,
106106 )
107+ self .assertEqual (
108+ env_variables ["enable_cir" ],
109+ "OFF" ,
110+ )
107111
108112 def test_clang_windows (self ):
109113 env_variables = compute_projects .get_env_variables (
@@ -126,6 +130,32 @@ def test_clang_windows(self):
126130 env_variables ["runtimes_check_targets_needs_reconfig" ],
127131 "check-cxx check-cxxabi check-unwind" ,
128132 )
133+ self .assertEqual (env_variables ["enable_cir" ], "OFF" )
134+
135+ def test_cir (self ):
136+ env_variables = compute_projects .get_env_variables (
137+ ["clang/lib/CIR/CMakeLists.txt" ], "Linux"
138+ )
139+ self .assertEqual (
140+ env_variables ["projects_to_build" ],
141+ "clang;clang-tools-extra;lld;llvm;mlir" ,
142+ )
143+ self .assertEqual (
144+ env_variables ["project_check_targets" ],
145+ "check-clang check-clang-cir check-clang-tools" ,
146+ )
147+ self .assertEqual (
148+ env_variables ["runtimes_to_build" ], "compiler-rt;libcxx;libcxxabi;libunwind"
149+ )
150+ self .assertEqual (
151+ env_variables ["runtimes_check_targets" ],
152+ "check-compiler-rt" ,
153+ )
154+ self .assertEqual (
155+ env_variables ["runtimes_check_targets_needs_reconfig" ],
156+ "check-cxx check-cxxabi check-unwind" ,
157+ )
158+ self .assertEqual (env_variables ["enable_cir" ], "ON" )
129159
130160 def test_bolt (self ):
131161 env_variables = compute_projects .get_env_variables (
@@ -158,6 +188,7 @@ def test_mlir(self):
158188 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
159189 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
160190 self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
191+ self .assertEqual (env_variables ["enable_cir" ], "OFF" )
161192
162193 def test_flang (self ):
163194 env_variables = compute_projects .get_env_variables (
@@ -168,6 +199,7 @@ def test_flang(self):
168199 self .assertEqual (env_variables ["runtimes_to_build" ], "" )
169200 self .assertEqual (env_variables ["runtimes_check_targets" ], "" )
170201 self .assertEqual (env_variables ["runtimes_check_targets_needs_reconfig" ], "" )
202+ self .assertEqual (env_variables ["enable_cir" ], "OFF" )
171203
172204 def test_invalid_subproject (self ):
173205 env_variables = compute_projects .get_env_variables (
@@ -237,7 +269,7 @@ def test_ci(self):
237269 )
238270 self .assertEqual (
239271 env_variables ["project_check_targets" ],
240- "check-bolt check-clang check-clang-tools check-flang check-lld check-lldb check-llvm check-mlir check-polly" ,
272+ "check-bolt check-clang check-clang-cir check-clang- tools check-flang check-lld check-lldb check-llvm check-mlir check-polly" ,
241273 )
242274 self .assertEqual (
243275 env_variables ["runtimes_to_build" ],
0 commit comments