[llvm] [unittests] Fix `TableGenTests` with `LLVM_LINK_LLVM_DYLIB` (PR #86664)

Jonas Hahnfeld via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 07:05:11 PDT 2024


https://github.com/hahnjo created https://github.com/llvm/llvm-project/pull/86664

Since the restructuring in commit fa3d789df1, the option `DISABLE_LLVM_LINK_LLVM_DYLIB` is counter-productive and leads to
```
CommandLine Error: Option 'debug-counter' registered more than once!
```

>From c9ba4f24ceeb686f4c37e92ccea5c8c8d4143633 Mon Sep 17 00:00:00 2001
From: Jonas Hahnfeld <jonas.hahnfeld at cern.ch>
Date: Tue, 26 Mar 2024 15:00:20 +0100
Subject: [PATCH] [unittests] Fix TableGenTests with LLVM_LINK_LLVM_DYLIB

Since the restructuring in commit fa3d789df1, the option
DISABLE_LLVM_LINK_LLVM_DYLIB is counter-productive and leads to
CommandLine Error: Option 'debug-counter' registered more than once!
---
 llvm/unittests/TableGen/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/unittests/TableGen/CMakeLists.txt b/llvm/unittests/TableGen/CMakeLists.txt
index fae0eee06e4b0c..57b237306b19cb 100644
--- a/llvm/unittests/TableGen/CMakeLists.txt
+++ b/llvm/unittests/TableGen/CMakeLists.txt
@@ -9,7 +9,7 @@ tablegen(LLVM AutomataTables.inc -gen-searchable-tables)
 tablegen(LLVM AutomataAutomata.inc -gen-automata)
 add_public_tablegen_target(AutomataTestTableGen)
 
-add_llvm_unittest(TableGenTests DISABLE_LLVM_LINK_LLVM_DYLIB
+add_llvm_unittest(TableGenTests
   AutomataTest.cpp
   CodeExpanderTest.cpp
   ParserEntryPointTest.cpp



More information about the llvm-commits mailing list