[llvm] 91b6ef6 - [M68k] Put M68kInfo as the direct library dependency for AsmParser

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 13 21:21:46 PDT 2021


Author: Min-Yih Hsu
Date: 2021-04-13T21:21:02-07:00
New Revision: 91b6ef64db55084b33295e640258c926acedcb1a

URL: https://github.com/llvm/llvm-project/commit/91b6ef64db55084b33295e640258c926acedcb1a
DIFF: https://github.com/llvm/llvm-project/commit/91b6ef64db55084b33295e640258c926acedcb1a.diff

LOG: [M68k] Put M68kInfo as the direct library dependency for AsmParser

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).

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/M68k/AsmParser/CMakeLists.txt b/llvm/lib/Target/M68k/AsmParser/CMakeLists.txt
index 747a95ecc6c05..f4bbd39f1476f 100644
--- a/llvm/lib/Target/M68k/AsmParser/CMakeLists.txt
+++ b/llvm/lib/Target/M68k/AsmParser/CMakeLists.txt
@@ -1,11 +1,12 @@
 add_llvm_component_library(LLVMM68kAsmParser
-        M68kAsmParser.cpp
+  M68kAsmParser.cpp
 
   LINK_COMPONENTS
   MC
   MCParser
   Support
   M68kCodeGen
+  M68kInfo
 
   ADD_TO_COMPONENT
   M68k


        


More information about the llvm-commits mailing list