[llvm] Update test_flang in CI to use flang-rt as one of the projects. (PR #135260)

Daniel Chen via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 10 14:05:02 PDT 2025


https://github.com/DanielCChen created https://github.com/llvm/llvm-project/pull/135260

The CI `test_flang` seems not being updated since `flang-rt` is separated from the `flang` build. 
This PR is to update that to put `flang-rt` as one of the projects when testing flang. 
I am not familiar with the CI configuration, so this PR serves a initiation for the update.

>From 8f7eee565fd540a00e9fbd931e29c0cadd7ceb02 Mon Sep 17 00:00:00 2001
From: Daniel Chen <cdchen at ca.ibm.com>
Date: Thu, 10 Apr 2025 16:08:12 -0400
Subject: [PATCH] Update test_flang in CI to use flang-rt as one of the
 projects.

---
 .ci/compute_projects.py      | 3 +++
 .ci/compute_projects_test.py | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index ff43547c9bbe5..89a7c787e5c7e 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -25,6 +25,7 @@
     "libc": {"clang", "lld"},
     "openmp": {"clang", "lld"},
     "flang": {"llvm", "clang"},
+    "flang-rt": {"flang"},
     "lldb": {"llvm", "clang"},
     "libclc": {"llvm", "clang"},
     "lld": {"llvm"},
@@ -51,6 +52,7 @@
     # TODO(issues/132795): LLDB should be enabled on clang changes.
     "clang": {"clang-tools-extra", "compiler-rt", "cross-project-tests"},
     "clang-tools-extra": {"libc"},
+    "flang": {"flang-rt"},
     "mlir": {"flang"},
 }
 
@@ -104,6 +106,7 @@
     "bolt": "check-bolt",
     "lld": "check-lld",
     "flang": "check-flang",
+    "flang-rt": "check-flang",
     "libc": "check-libc",
     "lld": "check-lld",
     "lldb": "check-lldb",
diff --git a/.ci/compute_projects_test.py b/.ci/compute_projects_test.py
index e787fd8133c86..d532c79f37a2c 100644
--- a/.ci/compute_projects_test.py
+++ b/.ci/compute_projects_test.py
@@ -140,7 +140,7 @@ def test_flang(self):
         env_variables = compute_projects.get_env_variables(
             ["flang/CMakeLists.txt"], "Linux"
         )
-        self.assertEqual(env_variables["projects_to_build"], "clang;flang;llvm")
+        self.assertEqual(env_variables["projects_to_build"], "clang;flang;llvm;flang-rt")
         self.assertEqual(env_variables["project_check_targets"], "check-flang")
         self.assertEqual(env_variables["runtimes_to_build"], "")
         self.assertEqual(env_variables["runtimes_check_targets"], "")



More information about the llvm-commits mailing list