[M68k] Put M68kInfo as the direct library dependency for AsmParser
authorMin-Yih Hsu <minyihh@uci.edu>
Wed, 14 Apr 2021 04:15:47 +0000 (21:15 -0700)
committerMin-Yih Hsu <minyihh@uci.edu>
Wed, 14 Apr 2021 04:21:02 +0000 (21:21 -0700)
M68kAsmParser uses `llvm::getTheM68kTarget` from M68kInfo, therefore we
should put M68kInfo as its direct dependency. Otherwise the build will
fail when building LLVM libraries as shared objects (building LLVM
libraries statically won't have this problem though).

llvm/lib/Target/M68k/AsmParser/CMakeLists.txt

index 747a95e..f4bbd39 100644 (file)
@@ -1,11 +1,12 @@
 add_llvm_component_library(LLVMM68kAsmParser
-        M68kAsmParser.cpp
+  M68kAsmParser.cpp
 
   LINK_COMPONENTS
   MC
   MCParser
   Support
   M68kCodeGen
+  M68kInfo
 
   ADD_TO_COMPONENT
   M68k