diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py index 5cb01ea705df5..a26e82ae0b96c 100644 --- a/.ci/compute_projects.py +++ b/.ci/compute_projects.py @@ -80,6 +80,7 @@ "clang": {"compiler-rt"}, "clang-tools-extra": {"libc"}, "libc": {"libc"}, + "compiler-rt": {"compiler-rt"}, ".ci": {"compiler-rt", "libc"}, } DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = { diff --git a/.ci/compute_projects_test.py b/.ci/compute_projects_test.py index 8485b3dc56673..29456adc3668d 100644 --- a/.ci/compute_projects_test.py +++ b/.ci/compute_projects_test.py @@ -126,6 +126,32 @@ def test_clang_windows(self): ) self.assertEqual(env_variables["enable_cir"], "OFF") + def test_compiler_rt(self): + env_variables = compute_projects.get_env_variables( + ["compiler-rt/lib/asan/asan_allocator.cpp"], "Linux" + ) + self.assertEqual( + env_variables["projects_to_build"], + "clang;lld", + ) + self.assertEqual( + env_variables["project_check_targets"], + "", + ) + self.assertEqual(env_variables["runtimes_to_build"], "compiler-rt") + self.assertEqual( + env_variables["runtimes_check_targets"], + "check-compiler-rt", + ) + self.assertEqual( + env_variables["runtimes_check_targets_needs_reconfig"], + "", + ) + self.assertEqual( + env_variables["enable_cir"], + "OFF", + ) + def test_cir(self): env_variables = compute_projects.get_env_variables( ["clang/lib/CIR/CMakeLists.txt"], "Linux"