[llvm] [bazel] Fix LLVM plugin tests under Analysis. (PR #142999)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 14:39:40 PDT 2025


================
@@ -45,6 +119,12 @@ cc_test(
             "Analysis/TFUtilsTest.cpp",
             "Analysis/TrainingLoggerTest.cpp",
             "Analysis/MLModelRunnerTest.cpp",
+            # These tests dynamically load Plugins which both pull in
+            # llvm/lib/Analysis/ProfileSummaryInfo.cpp, which registers flags;
+            # if built into the same cc_test target, those flags will be
+            # registered twice and cause runtime failures.
+            "Analysis/PluginInlineAdvisorAnalysisTest.cpp",
+            "Analysis/PluginInlineOrderAnalysisTest.cpp",
----------------
chapuni wrote:

Let me investigate further later, 

https://github.com/llvm/llvm-project/pull/142999


More information about the llvm-commits mailing list