llvm-project
e2190cdd - [mlir][IndexToLLVM] Link MLIRAnalysisBase instead of the MLIRAnalysis umbrella (#240466)

Commit
11 days ago
[mlir][IndexToLLVM] Link MLIRAnalysisBase instead of the MLIRAnalysis umbrella (#240466) #238966 added the \`MLIRAnalysis\` umbrella to \`MLIRIndexToLLVM\`'s link libraries, but the conversion only needs \`DataLayoutAnalysis\`, which lives in \`MLIRAnalysisBase\`. Same issue as #238915: the umbrella archive (#232793) reuses the component object libraries, so depending on it puts both \`libMLIRAnalysis.a\` and e.g. \`libMLIRAnalysisBase.a\` on the link line of anything that links all of MLIR's libraries. Linkers that extract every archive member (e.g. \`--whole-archive\`) then fail with duplicate symbols. Assisted by: Claude
Author
Parents
Loading