aboutsummaryrefslogtreecommitdiff
path: root/tools/lli/Makefile
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-10-14 06:35:11 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-10-14 06:35:11 +0000
commitce6662fb6aea13c053dee808d25a6771e8b8d8dc (patch)
treed420ab07e8350ed4b02f4f5ba91467b6153acf7f /tools/lli/Makefile
parentd37faba5b485eefe94e36e0f88da899b8fec42e5 (diff)
Enable the PowerPC JIT by compiling powerpc.o library into lli
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli/Makefile')
-rw-r--r--tools/lli/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/lli/Makefile b/tools/lli/Makefile
index d43fce3162..a8e1c44486 100644
--- a/tools/lli/Makefile
+++ b/tools/lli/Makefile
@@ -46,6 +46,19 @@ ifdef ENABLE_SPARC_JIT
sparcv9regalloc
endif
+# You can enable the PowerPC JIT on a non-PowerPC host by setting the flag
+# ENABLE_PPC_JIT on the make command line. If not, it will still be
+# enabled automagically on an PowerPC host.
+ifeq ($(ARCH), PowerPC)
+ ENABLE_PPC_JIT = 1
+endif
+
+# What the PowerPC JIT requires
+ifdef ENABLE_PPC_JIT
+ CPPFLAGS += -DENABLE_PPC_JIT
+ JITLIBS += powerpc
+endif
+
USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
transformutils.a bcreader vmcore support target.a LLVMsystem.a