[llvm] [llvm-exegesis] Only link/initialize supported targets (NFC) (PR #95421)
Leandro Lupori via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 05:42:40 PDT 2024
================
@@ -1,16 +1,23 @@
+# Has side effect of defining LLVM_EXEGESIS_TARGETS
+add_subdirectory(lib)
+
set(LLVM_LINK_COMPONENTS
- AllTargetsAsmParsers
- AllTargetsCodeGens
- AllTargetsDescs
- AllTargetsDisassemblers
- AllTargetsInfos
CodeGenTypes
MC
MCParser
Support
TargetParser
)
+foreach(t ${LLVM_EXEGESIS_TARGETS})
+ string(STRIP ${t} t)
+ list(APPEND LLVM_LINK_COMPONTENTS "LLVM${t}AsmParser")
+ list(APPEND LLVM_LINK_COMPONTENTS "LLVM${t}CodeGen")
+ list(APPEND LLVM_LINK_COMPONTENTS "LLVM${t}Desc")
+ list(APPEND LLVM_LINK_COMPONTENTS "LLVM${t}Disassembler")
+ list(APPEND LLVM_LINK_COMPONTENTS "LLVM${t}Info")
----------------
luporl wrote:
There is a typo here: LLVM_LINK_COMPONTENTS.
Maybe that's what is causing the link failure in some bots.
https://github.com/llvm/llvm-project/pull/95421
More information about the llvm-commits
mailing list