summaryrefslogtreecommitdiffstats
path: root/llvm/tools
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
commit75217e8cb75e96efe1bc23906c0aa9e25f87b562 (patch)
tree123e4971cb504efb9e578d80a9f7fe8244031be4 /llvm/tools
parent4154061b92b6e42c6709585d6789fe1e774526a0 (diff)
downloadbcm5719-llvm-75217e8cb75e96efe1bc23906c0aa9e25f87b562.tar.gz
bcm5719-llvm-75217e8cb75e96efe1bc23906c0aa9e25f87b562.zip
fix edis to only try to link in the x86 parts if the x86 backend is
enabled. Add direct ARM support. llvm-svn: 108933
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/edis/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/tools/edis/Makefile b/llvm/tools/edis/Makefile
index ab65b2b8354..dc5aa441af8 100644
--- a/llvm/tools/edis/Makefile
+++ b/llvm/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
OpenPOWER on IntegriCloud