fix edis to only try to link in the x86 parts if the x86 backend is
authorChris Lattner <sabre@nondot.org>
Tue, 20 Jul 2010 21:23:57 +0000 (21:23 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Jul 2010 21:23:57 +0000 (21:23 +0000)
enabled.  Add direct ARM support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108933 91177308-0d34-0410-b5e6-96231b3b80d8

tools/edis/Makefile

index ab65b2b83545ed6d44084e3ad69b124b40c6f43d..dc5aa441af8b170a252a2bb22baced9d77a6b44a 100644 (file)
@@ -19,7 +19,17 @@ EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/EnhancedDisassembly.exports
 # early so we can set up LINK_COMPONENTS before including Makefile.rules
 include $(LEVEL)/Makefile.config
 
-LINK_COMPONENTS := $(TARGETS_TO_BUILD) mcdisassembler x86asmprinter x86disassembler
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) mcdisassembler
+
+# If the X86 target is enabled, link in the asmprinter and disassembler.
+ifneq ($(filter $(TARGETS_TO_BUILD), X86),)
+LINK_COMPONENTS += x86asmprinter x86disassembler
+endif
+
+# If the X86 target is enabled, link in the asmprinter and disassembler.
+ifneq ($(filter $(TARGETS_TO_BUILD), ARM),)
+LINK_COMPONENTS += armasmprinter armdisassembler
+endif
 
 include $(LEVEL)/Makefile.common