[llvm-commits] [llvm] r136455 - /llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt

Chandler Carruth chandlerc at gmail.com
Thu Jul 28 19:12:59 PDT 2011


Author: chandlerc
Date: Thu Jul 28 21:12:59 2011
New Revision: 136455

URL: http://llvm.org/viewvc/llvm-project?rev=136455&view=rev
Log:
Fix the MCDisassembler dependencies. These were just absurdly wrong.

First off, only depend on the actual MC-ized disassemblers in the
targets, not all of the libraries those in turn depend on.

Second off, only depend on those MC-ized disassemblers for targets we're
building.

This should fix builds of fewer than all targets.

Modified:
    llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt

Modified: llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt?rev=136455&r1=136454&r2=136455&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt (original)
+++ llvm/trunk/lib/MC/MCDisassembler/CMakeLists.txt Thu Jul 28 21:12:59 2011
@@ -7,42 +7,15 @@
   )
 
 add_llvm_library_dependencies(LLVMMCDisassembler
-  LLVMARMAsmParser
-  LLVMARMDesc
-  LLVMARMDisassembler
-  LLVMARMInfo
-  LLVMAlphaDesc
-  LLVMAlphaInfo
-  LLVMBlackfinDesc
-  LLVMBlackfinInfo
-  LLVMCBackendInfo
-  LLVMCellSPUDesc
-  LLVMCellSPUInfo
-  LLVMCppBackendInfo
-  LLVMMBlazeAsmParser
-  LLVMMBlazeDesc
-  LLVMMBlazeDisassembler
-  LLVMMBlazeInfo
   LLVMMC
   LLVMMCParser
-  LLVMMSP430Desc
-  LLVMMSP430Info
-  LLVMMipsDesc
-  LLVMMipsInfo
-  LLVMPTXDesc
-  LLVMPTXInfo
-  LLVMPowerPCDesc
-  LLVMPowerPCInfo
-  LLVMSparcDesc
-  LLVMSparcInfo
   LLVMSupport
-  LLVMSystemZDesc
-  LLVMSystemZInfo
   LLVMTarget
-  LLVMX86AsmParser
-  LLVMX86Desc
-  LLVMX86Disassembler
-  LLVMX86Info
-  LLVMXCoreDesc
-  LLVMXCoreInfo
   )
+
+foreach(t ${LLVM_TARGETS_TO_BUILD})
+  set(td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t})
+  if(EXISTS ${td}/Disassembler/CMakeLists.txt)
+    add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Disassembler")
+  endif()
+endforeach(t)





More information about the llvm-commits mailing list