From 751469e23458365f0d32c10c49eadc97413d1d50 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Aug 2025 18:37:31 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF-8?q?itial=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created using spr 1.3.6 --- .ci/compute_projects.py | 1 + .ci/compute_projects_test.py | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) 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..22a4ee7cfddf4 100644 --- a/.ci/compute_projects_test.py +++ b/.ci/compute_projects_test.py @@ -126,6 +126,33 @@ 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" From 4dbdf85da385412c2b60e43e96a6439a7712c4aa Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 6 Aug 2025 18:43:01 -0700 Subject: [PATCH 2/2] format Created using spr 1.3.6 --- .ci/compute_projects_test.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.ci/compute_projects_test.py b/.ci/compute_projects_test.py index 22a4ee7cfddf4..29456adc3668d 100644 --- a/.ci/compute_projects_test.py +++ b/.ci/compute_projects_test.py @@ -135,11 +135,10 @@ def test_compiler_rt(self): "clang;lld", ) self.assertEqual( - env_variables["project_check_targets"],"", - ) - self.assertEqual( - env_variables["runtimes_to_build"], "compiler-rt" + env_variables["project_check_targets"], + "", ) + self.assertEqual(env_variables["runtimes_to_build"], "compiler-rt") self.assertEqual( env_variables["runtimes_check_targets"], "check-compiler-rt",