Mark the LLVMGlobalISel library as optional in
LLVMBuild.txt, since the library is only built
if LLVM_BUILD_GLOBAL_ISEL is set. Without doing
this, llvm-config includes the library in the
list of components regardless of whether it's
built, and then will error out when asked for
the library names/paths.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I noticed that other OptionalLibrary components (like OProfileJIT) also add the library name to LLVMOPTIONALCOMPONENTS (cf. llvm/CMakeLists.txt:639) -- is this necessary here too?
(I'm not familiar with LLVM's build system and haven't found any documentation about OptionalLibrary; I hope you don't mind that I'm asking here ...)