summaryrefslogtreecommitdiff
path: root/tools/edis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-20 21:23:57 +0000
committerChris Lattner <sabre@nondot.org>2010-07-20 21:23:57 +0000
commit6f2cea01860da12896efc7b1afdfd430c014fae3 (patch)
tree14ff3ec00ccd7afdcd8578d2e95eae0e824be6da /tools/edis
parentaac07eaeef0b29690f18061abc148a2608cd77de (diff)
downloadllvm-6f2cea01860da12896efc7b1afdfd430c014fae3.tar.gz
llvm-6f2cea01860da12896efc7b1afdfd430c014fae3.tar.bz2
llvm-6f2cea01860da12896efc7b1afdfd430c014fae3.tar.xz
fix edis to only try to link in the x86 parts if the x86 backend is
enabled. Add direct ARM support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/edis')
-rw-r--r--tools/edis/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/edis/Makefile b/tools/edis/Makefile
index ab65b2b835..dc5aa441af 100644
--- a/tools/edis/Makefile
+++ b/tools/edis/Makefile
@@ -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