[llvm] [CI] Add flang-rt to pre-merge configuration (PR #156039)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 29 09:17:25 PDT 2025
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/156039
>From 1ed2fbe39b23c32926f034bbc23b9ae7e95b2905 Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov at redhat.com>
Date: Fri, 29 Aug 2025 16:48:02 +0200
Subject: [PATCH] [CI] Add flang-rt to pre-merge configuration
Currently if you modify something in flang-rt, no tests are run
at all.
---
.ci/compute_projects.py | 8 ++++++--
.ci/compute_projects_test.py | 12 ++++++------
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index 95351c46fad59..3a5ab3f0c5412 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -26,6 +26,7 @@
"libc": {"clang", "lld"},
"openmp": {"clang", "lld"},
"flang": {"llvm", "clang"},
+ "flang-rt": {"flang"},
"lldb": {"llvm", "clang"},
"libclc": {"llvm", "clang"},
"lld": {"llvm"},
@@ -80,7 +81,8 @@
"clang-tools-extra": {"libc"},
"libc": {"libc"},
"compiler-rt": {"compiler-rt"},
- ".ci": {"compiler-rt", "libc"},
+ "flang-rt": {"flang-rt"},
+ ".ci": {"compiler-rt", "libc", "flang-rt"},
}
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
"llvm": {"libcxx", "libcxxabi", "libunwind"},
@@ -103,6 +105,7 @@
"libcxx",
"libcxxabi",
"libunwind",
+ "flang-rt",
}
# These are projects that we should test if the project itself is changed but
@@ -140,6 +143,7 @@
"bolt": "check-bolt",
"lld": "check-lld",
"flang": "check-flang",
+ "flang-rt": "check-flang-rt",
"libc": "check-libc",
"lld": "check-lld",
"lldb": "check-lldb",
@@ -148,7 +152,7 @@
"polly": "check-polly",
}
-RUNTIMES = {"libcxx", "libcxxabi", "libunwind", "compiler-rt", "libc"}
+RUNTIMES = {"libcxx", "libcxxabi", "libunwind", "compiler-rt", "libc", "flang-rt"}
# Meta projects are projects that need explicit handling but do not reside
# in their own top level folder. To add a meta project, the start of the path
diff --git a/.ci/compute_projects_test.py b/.ci/compute_projects_test.py
index 7d780b51ca5d1..07ae520b97e22 100644
--- a/.ci/compute_projects_test.py
+++ b/.ci/compute_projects_test.py
@@ -293,11 +293,11 @@ def test_ci(self):
)
self.assertEqual(
env_variables["runtimes_to_build"],
- "compiler-rt;libc;libcxx;libcxxabi;libunwind",
+ "compiler-rt;flang-rt;libc;libcxx;libcxxabi;libunwind",
)
self.assertEqual(
env_variables["runtimes_check_targets"],
- "check-compiler-rt check-libc",
+ "check-compiler-rt check-flang-rt check-libc",
)
self.assertEqual(
env_variables["runtimes_check_targets_needs_reconfig"],
@@ -367,11 +367,11 @@ def test_premerge_workflow(self):
)
self.assertEqual(
env_variables["runtimes_to_build"],
- "compiler-rt;libc;libcxx;libcxxabi;libunwind",
+ "compiler-rt;flang-rt;libc;libcxx;libcxxabi;libunwind",
)
self.assertEqual(
env_variables["runtimes_check_targets"],
- "check-compiler-rt check-libc",
+ "check-compiler-rt check-flang-rt check-libc",
)
self.assertEqual(
env_variables["runtimes_check_targets_needs_reconfig"],
@@ -402,11 +402,11 @@ def test_third_party_benchmark(self):
)
self.assertEqual(
env_variables["runtimes_to_build"],
- "compiler-rt;libc;libcxx;libcxxabi;libunwind",
+ "compiler-rt;flang-rt;libc;libcxx;libcxxabi;libunwind",
)
self.assertEqual(
env_variables["runtimes_check_targets"],
- "check-compiler-rt check-libc",
+ "check-compiler-rt check-flang-rt check-libc",
)
self.assertEqual(
env_variables["runtimes_check_targets_needs_reconfig"],
More information about the llvm-commits
mailing list