[llvm] [mlir] [mlir] Consider mlir-linalg-ods-gen as a tablegen tool in build (PR #75093)

Michael Holman via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 3 15:18:25 PST 2024


MikeHolman wrote:

@stellaraccident Please, enjoy your vacation! We can get this sorted or it can wait a couple more weeks.

The issue seems to be that LLVM Support library is being linked against twice in shared library builds. I believe the solution is that we don't need to explicitly link against Support here, and I have removed the linkage in #76843.

I think this is because in shared library builds, the `llvm_config` macro (which is called by `add_tablegen` via `add_llvm_executable`) will link `mlir-linalg-ods-yaml-gen` against `libLLVM`, which already contains `libSupport`, and that causes the debug-counter command line option to be registered twice.

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


More information about the llvm-commits mailing list