Force linking llvm-exegesis to static LLVM libraries instead of dylib
to prevent duplicate symbols due to linking both. Ideally, we'd want
to link to the dylib only here but the target sub-libraries use hidden
symbols from LLVM target libraries and therefore linking the dylib
fails.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I don't understand what you mean. If you're asking for something that actually fails due to linking both copies of the library, I haven't seen one with llvm-exegesis. I did have problems with clangd, so I'm trying to correct linkage everywhere.
Comment Actions
When linking with libpfm (set -DLLVM_ENABLE_LIBPFM=ON when configuring), I get an error without this change:
> llvm-exegesis --help : CommandLine Error: Option 'x86-use-base-pointer' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options Aborted (core dumped)
When not linking with libpfm, I can't reliably reproduce it. The functionality of llvm-exegesis is reduced then, and it probably doesn't use any target internals, or at least not enough to cause a problem.