[llvm-commits] CVS: llvm/tools/lli/Makefile

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 17 10:56:01 PDT 2003


Changes in directory llvm/tools/lli:

Makefile updated: 1.26 -> 1.27

---
Log message:

Do not link in the Sparc JIT when building on X86.  Eventually the sparc will not
link in the X86 JIT either, but this makes testing easier.

For some reason, the sparc JIT was breaking the X86 JIT when it was linked in. :(



---
Diffs of the changes:

Index: llvm/tools/lli/Makefile
diff -u llvm/tools/lli/Makefile:1.26 llvm/tools/lli/Makefile:1.27
--- llvm/tools/lli/Makefile:1.26	Tue Jun 17 10:46:34 2003
+++ llvm/tools/lli/Makefile	Tue Jun 17 10:54:52 2003
@@ -2,25 +2,25 @@
 TOOLNAME = lli
 PARALLEL_DIRS = Interpreter JIT
 
-# FIXME: This enables testing the Sparc JIT on x86.
-# Perhaps in the future this should be a ./configure option.
-
 # Generic JIT libraries
 JITLIBS   = lli-jit codegen
 ARCHLIBS  =
 
 # What the X86 JIT requires
 JITLIBS  += x86
-ARCHLIBS += 
+# X86 doesn't require any ARCHLIBS
 
 # What the Sparc JIT requires
+ifeq ($(ARCH),Sparc)
 JITLIBS  += sparc 
 ARCHLIBS  = sched livevar instrument.a profpaths transformutils.a \
            bcwriter transforms.a ipo.a ipa.a datastructure.a regalloc \
            mapping select postopts.a preopts
 
-USEDLIBS = lli-interpreter $(JITLIBS) bcreader vmcore scalaropts \
-           analysis.a support.a target.a $(ARCHLIBS)
+endif
+
+USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) bcreader vmcore scalaropts.a \
+           analysis.a support.a target.a
 
 # Have gcc tell the linker to export symbols from the program so that
 # dynamically loaded modules can be linked against them.





More information about the llvm-commits mailing list