[llvm-commits] [llvm] r108933 - /llvm/trunk/tools/edis/Makefile

Chris Lattner sabre at nondot.org
Tue Jul 20 14:23:57 PDT 2010


Author: lattner
Date: Tue Jul 20 16:23:57 2010
New Revision: 108933

URL: http://llvm.org/viewvc/llvm-project?rev=108933&view=rev
Log:
fix edis to only try to link in the x86 parts if the x86 backend is
enabled.  Add direct ARM support.

Modified:
    llvm/trunk/tools/edis/Makefile

Modified: llvm/trunk/tools/edis/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/edis/Makefile?rev=108933&r1=108932&r2=108933&view=diff
==============================================================================
--- llvm/trunk/tools/edis/Makefile (original)
+++ llvm/trunk/tools/edis/Makefile Tue Jul 20 16:23:57 2010
@@ -19,7 +19,17 @@
 # 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
 





More information about the llvm-commits mailing list