[llvm] [IN PROGRESS] Fix premerge script so certain projects appear in LLVM_ENABLE_RUNTIMES. (PR #145754)
Amy Huang via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 11:08:35 PDT 2025
https://github.com/amykhuang created https://github.com/llvm/llvm-project/pull/145754
Putting libc in "LLVM_ENABLE_PROJECTS" instead of "LLVM_ENABLE_RUNTIMES" is deprecated.
The script has some logic already for doing this correctly but libc was still appearing in LLVM_ENABLE_PROJECTS.
>From f62b9cd22a9a6dfafc6d8446ff981a19d5b46387 Mon Sep 17 00:00:00 2001
From: Amy Huang <akhuang at google.com>
Date: Wed, 25 Jun 2025 11:05:01 -0700
Subject: [PATCH] Fix premerge script so that projects appear in
LLVM_ENABLE_RUNTIMES correctly
---
.ci/compute_projects.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index 80e4e0221b3d7..a5e0c57936428 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -170,6 +170,7 @@ def _exclude_projects(current_projects: Set[str], platform: str) -> Set[str]:
def _compute_projects_to_test(modified_projects: Set[str], platform: str) -> Set[str]:
projects_to_test = set()
for modified_project in modified_projects:
+ print(modified_project)
if modified_project in RUNTIMES:
continue
# Skip all projects where we cannot run tests.
@@ -207,6 +208,8 @@ def _compute_runtimes_to_test(modified_projects: Set[str], platform: str) -> Set
for modified_project in modified_projects:
if modified_project in DEPENDENT_RUNTIMES_TO_TEST:
runtimes_to_test.update(DEPENDENT_RUNTIMES_TO_TEST[modified_project])
+ if modified_project in RUNTIMES:
+ runtimes_to_test.add(modified_project)
return _exclude_projects(runtimes_to_test, platform)
More information about the llvm-commits
mailing list