diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-23 19:00:43 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-23 19:00:43 +0200 |
commit | b108e91e354e7a5443db690ef558ab87402fcca8 (patch) | |
tree | c125d0b73b801b8c0b447e71863d7b920b1d9dd2 | |
parent | 3f63e832969932dfd43f6382b24a8a73377d33b9 (diff) | |
parent | 12c629db9035c4be51d106e1738aa91a2b74dfcc (diff) |
Merge mulk_benkard@ssh.phx.nearlyfreespeech.net:/home/htdocs/code/mulklisp
Conflicts:
GNUmakefile
-rw-r--r-- | GNUmakefile | 2 | ||||
-rw-r--r-- | MLKLLVMCompiler.mm | 4 | ||||
-rw-r--r-- | Toilet Lisp.xcodeproj/project.pbxproj | 202 |
3 files changed, 78 insertions, 130 deletions
diff --git a/GNUmakefile b/GNUmakefile index 445e0d6..29f1f93 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -84,7 +84,7 @@ ToiletKit_LDFLAGS = -lgmp -lffi -ldl ifeq ($(USE_LLVM),YES) -ADDITIONAL_OBJCFLAGS += -DUSE_LLVM +ADDITIONAL_OBJCFLAGS += -DUSE_LLVM -DLLVM_MAJOR_VERSION=$(shell llvm-config --version | cut -f 1 -d.) -DLLVM_MINOR_VERSION=$(shell llvm-config --version | cut -f 2 -d. | sed s/svn//) LLVM_CONFIG = llvm-config LLVM_LDFLAGS = $(shell $(LLVM_CONFIG) --ldflags) $(shell $(LLVM_CONFIG) --libs backend engine linker codegen transformutils scalaropts analysis ipo) endif diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm index 87a7ead..2aaa0e8 100644 --- a/MLKLLVMCompiler.mm +++ b/MLKLLVMCompiler.mm @@ -53,7 +53,11 @@ using namespace llvm; static ExecutionEngine *execution_engine; static llvm::Module *module; +#if defined(LLVM_MAJOR_VERSION) && (LLVM_MAJOR_VERSION <= 2) && (LLVM_MINOR_VERSION <= 3) +static IRBuilder builder; +#else static IRBuilder<true, ConstantFolder> builder; +#endif static FunctionPassManager *fpm; static PointerType *PointerTy; static ModuleProvider *module_provider; diff --git a/Toilet Lisp.xcodeproj/project.pbxproj b/Toilet Lisp.xcodeproj/project.pbxproj index f7664df..acb9d51 100644 --- a/Toilet Lisp.xcodeproj/project.pbxproj +++ b/Toilet Lisp.xcodeproj/project.pbxproj @@ -7,13 +7,15 @@ objects = { /* Begin PBXBuildFile section */ + A72E9E380E51CB0500BDE40F /* MLKCompiledClosure.h in Headers */ = {isa = PBXBuildFile; fileRef = A72E9E370E51CB0500BDE40F /* MLKCompiledClosure.h */; }; + A72E9E3A0E51CB1300BDE40F /* MLKCompiledClosure.m in Sources */ = {isa = PBXBuildFile; fileRef = A72E9E390E51CB1300BDE40F /* MLKCompiledClosure.m */; }; + A72E9E6C0E5220A200BDE40F /* MLKLexicalContext-MLKLLVMCompilation.mm in Sources */ = {isa = PBXBuildFile; fileRef = A72E9E6B0E5220A200BDE40F /* MLKLexicalContext-MLKLLVMCompilation.mm */; }; + A72E9E6E0E5220B700BDE40F /* MLKLexicalContext-MLKLLVMCompilation.h in Headers */ = {isa = PBXBuildFile; fileRef = A72E9E6D0E5220B700BDE40F /* MLKLexicalContext-MLKLLVMCompilation.h */; }; A78711320E4C459200A7191F /* globals.m in Sources */ = {isa = PBXBuildFile; fileRef = A787112E0E4C459200A7191F /* globals.m */; }; A78711330E4C459200A7191F /* MLKArray.m in Sources */ = {isa = PBXBuildFile; fileRef = A787112F0E4C459200A7191F /* MLKArray.m */; }; - A78711340E4C459200A7191F /* MLKCompiledProcedure.m in Sources */ = {isa = PBXBuildFile; fileRef = A78711300E4C459200A7191F /* MLKCompiledProcedure.m */; }; A78711350E4C459200A7191F /* MLKForeignProcedure.m in Sources */ = {isa = PBXBuildFile; fileRef = A78711310E4C459200A7191F /* MLKForeignProcedure.m */; }; A787113A0E4C45A300A7191F /* globals.h in Headers */ = {isa = PBXBuildFile; fileRef = A78711360E4C45A300A7191F /* globals.h */; }; A787113B0E4C45A300A7191F /* MLKArray.h in Headers */ = {isa = PBXBuildFile; fileRef = A78711370E4C45A300A7191F /* MLKArray.h */; }; - A787113C0E4C45A300A7191F /* MLKCompiledProcedure.h in Headers */ = {isa = PBXBuildFile; fileRef = A78711380E4C45A300A7191F /* MLKCompiledProcedure.h */; }; A787113D0E4C45A300A7191F /* MLKForeignProcedure.h in Headers */ = {isa = PBXBuildFile; fileRef = A78711390E4C45A300A7191F /* MLKForeignProcedure.h */; }; A78712010E4C4AC500A7191F /* array.lisp in CopyFiles */ = {isa = PBXBuildFile; fileRef = A787112C0E4C456C00A7191F /* array.lisp */; }; A78712020E4C4AC500A7191F /* control-flow.lisp in CopyFiles */ = {isa = PBXBuildFile; fileRef = A7A834010E477B76005D64E0 /* control-flow.lisp */; }; @@ -306,19 +308,22 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + A720D3670E5B1CB700734638 /* GNUmakefile */ = {isa = PBXFileReference; explicitFileType = sourcecode.make; fileEncoding = 4; languageSpecificationIdentifier = make; path = GNUmakefile; sourceTree = "<group>"; }; + A72E9E370E51CB0500BDE40F /* MLKCompiledClosure.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MLKCompiledClosure.h; sourceTree = "<group>"; }; + A72E9E390E51CB1300BDE40F /* MLKCompiledClosure.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MLKCompiledClosure.m; sourceTree = "<group>"; }; + A72E9E6B0E5220A200BDE40F /* MLKLexicalContext-MLKLLVMCompilation.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = "MLKLexicalContext-MLKLLVMCompilation.mm"; sourceTree = "<group>"; }; + A72E9E6D0E5220B700BDE40F /* MLKLexicalContext-MLKLLVMCompilation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MLKLexicalContext-MLKLLVMCompilation.h"; sourceTree = "<group>"; }; A787112C0E4C456C00A7191F /* array.lisp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = array.lisp; sourceTree = "<group>"; }; A787112E0E4C459200A7191F /* globals.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = globals.m; sourceTree = "<group>"; }; A787112F0E4C459200A7191F /* MLKArray.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MLKArray.m; sourceTree = "<group>"; }; - A78711300E4C459200A7191F /* MLKCompiledProcedure.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MLKCompiledProcedure.m; sourceTree = "<group>"; }; A78711310E4C459200A7191F /* MLKForeignProcedure.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MLKForeignProcedure.m; sourceTree = "<group>"; }; A78711360E4C45A300A7191F /* globals.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = globals.h; sourceTree = "<group>"; }; A78711370E4C45A300A7191F /* MLKArray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MLKArray.h; sourceTree = "<group>"; }; - A78711380E4C45A300A7191F /* MLKCompiledProcedure.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MLKCompiledProcedure.h; sourceTree = "<group>"; }; A78711390E4C45A300A7191F /* MLKForeignProcedure.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MLKForeignProcedure.h; sourceTree = "<group>"; }; A78713800E4EFF4000A7191F /* MLKForm.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MLKForm.m; sourceTree = "<group>"; }; A78713810E4EFF4000A7191F /* MLKLLVMCompiler.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MLKLLVMCompiler.mm; sourceTree = "<group>"; }; A78713840E4EFF5D00A7191F /* MLKForm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MLKForm.h; sourceTree = "<group>"; }; - A78713850E4EFF5D00A7191F /* MLKLLVMCompiler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MLKLLVMCompiler.h; sourceTree = "<group>"; }; + A78713850E4EFF5D00A7191F /* MLKLLVMCompiler.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = MLKLLVMCompiler.h; sourceTree = "<group>"; }; A78713860E4EFF5D00A7191F /* special-symbols.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "special-symbols.h"; sourceTree = "<group>"; }; A787138B0E4EFF8A00A7191F /* ffi.lisp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ffi.lisp; sourceTree = "<group>"; }; A787138C0E4EFF8A00A7191F /* package.lisp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = package.lisp; sourceTree = "<group>"; }; @@ -539,6 +544,7 @@ A7E5C3CC0E21682800A01D81 = { isa = PBXGroup; children = ( + A720D3670E5B1CB700734638 /* GNUmakefile */, A7A834A40E477B86005D64E0 /* Lisp Files */, A7E5C55B0E21740C00A01D81 /* Foundation.framework */, A7E5C48D0E216A0E00A01D81 /* Source Files */, @@ -560,12 +566,13 @@ A7E5C48C0E2169CE00A01D81 /* Headers */ = { isa = PBXGroup; children = ( + A72E9E6D0E5220B700BDE40F /* MLKLexicalContext-MLKLLVMCompilation.h */, + A72E9E370E51CB0500BDE40F /* MLKCompiledClosure.h */, A78713840E4EFF5D00A7191F /* MLKForm.h */, A78713850E4EFF5D00A7191F /* MLKLLVMCompiler.h */, A78713860E4EFF5D00A7191F /* special-symbols.h */, A78711360E4C45A300A7191F /* globals.h */, A78711370E4C45A300A7191F /* MLKArray.h */, - A78711380E4C45A300A7191F /* MLKCompiledProcedure.h */, A78711390E4C45A300A7191F /* MLKForeignProcedure.h */, A7A8338C0E476D0D005D64E0 /* functions.h */, A7A8338D0E476D0D005D64E0 /* MLKBackquoteReader.h */, @@ -617,11 +624,12 @@ A7E5C48D0E216A0E00A01D81 /* Source Files */ = { isa = PBXGroup; children = ( + A72E9E6B0E5220A200BDE40F /* MLKLexicalContext-MLKLLVMCompilation.mm */, + A72E9E390E51CB1300BDE40F /* MLKCompiledClosure.m */, A78713800E4EFF4000A7191F /* MLKForm.m */, A78713810E4EFF4000A7191F /* MLKLLVMCompiler.mm */, A787112E0E4C459200A7191F /* globals.m */, A787112F0E4C459200A7191F /* MLKArray.m */, - A78711300E4C459200A7191F /* MLKCompiledProcedure.m */, A78711310E4C459200A7191F /* MLKForeignProcedure.m */, A7A833800E476CF3005D64E0 /* functions.m */, A7A833810E476CF3005D64E0 /* MLKBackquoteReader.m */, @@ -717,11 +725,12 @@ A7A833970E476D0D005D64E0 /* MLKValuesFunction.h in Headers */, A787113A0E4C45A300A7191F /* globals.h in Headers */, A787113B0E4C45A300A7191F /* MLKArray.h in Headers */, - A787113C0E4C45A300A7191F /* MLKCompiledProcedure.h in Headers */, A787113D0E4C45A300A7191F /* MLKForeignProcedure.h in Headers */, A78713870E4EFF5D00A7191F /* MLKForm.h in Headers */, A78713880E4EFF5D00A7191F /* MLKLLVMCompiler.h in Headers */, A78713890E4EFF5D00A7191F /* special-symbols.h in Headers */, + A72E9E380E51CB0500BDE40F /* MLKCompiledClosure.h in Headers */, + A72E9E6E0E5220B700BDE40F /* MLKLexicalContext-MLKLLVMCompilation.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -827,10 +836,11 @@ A7A8338B0E476CF3005D64E0 /* MLKValuesFunction.m in Sources */, A78711320E4C459200A7191F /* globals.m in Sources */, A78711330E4C459200A7191F /* MLKArray.m in Sources */, - A78711340E4C459200A7191F /* MLKCompiledProcedure.m in Sources */, A78711350E4C459200A7191F /* MLKForeignProcedure.m in Sources */, A78713820E4EFF4000A7191F /* MLKForm.m in Sources */, A78713830E4EFF4000A7191F /* MLKLLVMCompiler.mm in Sources */, + A72E9E3A0E51CB1300BDE40F /* MLKCompiledClosure.m in Sources */, + A72E9E6C0E5220A200BDE40F /* MLKLexicalContext-MLKLLVMCompilation.mm in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -874,7 +884,12 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_H", + "-DUSE_LLVM", + "-DLLVM_MAJOR_VERSION=2", + "-DLLVM_MINOR_VERSION=3", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -891,29 +906,13 @@ "-L/opt/local/lib", "-lpthread", "-lm", - /opt/local/lib/LLVMX86.o, - /opt/local/lib/LLVMSparc.o, - /opt/local/lib/LLVMPIC16.o, - /opt/local/lib/LLVMMSIL.o, - /opt/local/lib/LLVMMips.o, - "-lLLVMLinker", "-lLLVMipo", - /opt/local/lib/LLVMInterpreter.o, - "-lLLVMInstrumentation", - /opt/local/lib/LLVMIA64.o, + "-lLLVMLinker", + "-lLLVMArchive", + "-lLLVMBitReader", /opt/local/lib/LLVMExecutionEngine.o, /opt/local/lib/LLVMJIT.o, - "-lLLVMDebugger", - /opt/local/lib/LLVMCppBackend.o, - /opt/local/lib/LLVMCellSPU.o, - /opt/local/lib/LLVMCBackend.o, - "-lLLVMBitWriter", /opt/local/lib/LLVMPowerPC.o, - "-lLLVMAsmParser", - /opt/local/lib/LLVMARM.o, - "-lLLVMArchive", - "-lLLVMBitReader", - /opt/local/lib/LLVMAlpha.o, "-lLLVMSelectionDAG", "-lLLVMCodeGen", "-lLLVMScalarOpts", @@ -991,7 +990,12 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_H", + "-DUSE_LLVM", + "-DLLVM_MAJOR_VERSION=2", + "-DLLVM_MINOR_VERSION=3", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -1008,29 +1012,13 @@ "-L/opt/local/lib", "-lpthread", "-lm", - /opt/local/lib/LLVMX86.o, - /opt/local/lib/LLVMSparc.o, - /opt/local/lib/LLVMPIC16.o, - /opt/local/lib/LLVMMSIL.o, - /opt/local/lib/LLVMMips.o, - "-lLLVMLinker", "-lLLVMipo", - /opt/local/lib/LLVMInterpreter.o, - "-lLLVMInstrumentation", - /opt/local/lib/LLVMIA64.o, + "-lLLVMLinker", + "-lLLVMArchive", + "-lLLVMBitReader", /opt/local/lib/LLVMExecutionEngine.o, /opt/local/lib/LLVMJIT.o, - "-lLLVMDebugger", - /opt/local/lib/LLVMCppBackend.o, - /opt/local/lib/LLVMCellSPU.o, - /opt/local/lib/LLVMCBackend.o, - "-lLLVMBitWriter", /opt/local/lib/LLVMPowerPC.o, - "-lLLVMAsmParser", - /opt/local/lib/LLVMARM.o, - "-lLLVMArchive", - "-lLLVMBitReader", - /opt/local/lib/LLVMAlpha.o, "-lLLVMSelectionDAG", "-lLLVMCodeGen", "-lLLVMScalarOpts", @@ -1112,7 +1100,12 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_H", + "-DUSE_LLVM", + "-DLLVM_MAJOR_VERSION=2", + "-DLLVM_MINOR_VERSION=3", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -1129,29 +1122,13 @@ "-L/opt/local/lib", "-lpthread", "-lm", - /opt/local/lib/LLVMX86.o, - /opt/local/lib/LLVMSparc.o, - /opt/local/lib/LLVMPIC16.o, - /opt/local/lib/LLVMMSIL.o, - /opt/local/lib/LLVMMips.o, - "-lLLVMLinker", "-lLLVMipo", - /opt/local/lib/LLVMInterpreter.o, - "-lLLVMInstrumentation", - /opt/local/lib/LLVMIA64.o, + "-lLLVMLinker", + "-lLLVMArchive", + "-lLLVMBitReader", /opt/local/lib/LLVMExecutionEngine.o, /opt/local/lib/LLVMJIT.o, - "-lLLVMDebugger", - /opt/local/lib/LLVMCppBackend.o, - /opt/local/lib/LLVMCellSPU.o, - /opt/local/lib/LLVMCBackend.o, - "-lLLVMBitWriter", /opt/local/lib/LLVMPowerPC.o, - "-lLLVMAsmParser", - /opt/local/lib/LLVMARM.o, - "-lLLVMArchive", - "-lLLVMBitReader", - /opt/local/lib/LLVMAlpha.o, "-lLLVMSelectionDAG", "-lLLVMCodeGen", "-lLLVMScalarOpts", @@ -1195,7 +1172,12 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_H", + "-DUSE_LLVM", + "-DLLVM_MAJOR_VERSION=2", + "-DLLVM_MINOR_VERSION=3", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -1212,29 +1194,13 @@ "-L/opt/local/lib", "-lpthread", "-lm", - /opt/local/lib/LLVMX86.o, - /opt/local/lib/LLVMSparc.o, - /opt/local/lib/LLVMPIC16.o, - /opt/local/lib/LLVMMSIL.o, - /opt/local/lib/LLVMMips.o, - "-lLLVMLinker", "-lLLVMipo", - /opt/local/lib/LLVMInterpreter.o, - "-lLLVMInstrumentation", - /opt/local/lib/LLVMIA64.o, + "-lLLVMLinker", + "-lLLVMArchive", + "-lLLVMBitReader", /opt/local/lib/LLVMExecutionEngine.o, /opt/local/lib/LLVMJIT.o, - "-lLLVMDebugger", - /opt/local/lib/LLVMCppBackend.o, - /opt/local/lib/LLVMCellSPU.o, - /opt/local/lib/LLVMCBackend.o, - "-lLLVMBitWriter", /opt/local/lib/LLVMPowerPC.o, - "-lLLVMAsmParser", - /opt/local/lib/LLVMARM.o, - "-lLLVMArchive", - "-lLLVMBitReader", - /opt/local/lib/LLVMAlpha.o, "-lLLVMSelectionDAG", "-lLLVMCodeGen", "-lLLVMScalarOpts", @@ -1371,7 +1337,12 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_H", + "-DUSE_LLVM", + "-DLLVM_MAJOR_VERSION=2", + "-DLLVM_MINOR_VERSION=3", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -1388,29 +1359,13 @@ "-L/opt/local/lib", "-lpthread", "-lm", - /opt/local/lib/LLVMX86.o, - /opt/local/lib/LLVMSparc.o, - /opt/local/lib/LLVMPIC16.o, - /opt/local/lib/LLVMMSIL.o, - /opt/local/lib/LLVMMips.o, - "-lLLVMLinker", "-lLLVMipo", - /opt/local/lib/LLVMInterpreter.o, - "-lLLVMInstrumentation", - /opt/local/lib/LLVMIA64.o, + "-lLLVMLinker", + "-lLLVMArchive", + "-lLLVMBitReader", /opt/local/lib/LLVMExecutionEngine.o, /opt/local/lib/LLVMJIT.o, - "-lLLVMDebugger", - /opt/local/lib/LLVMCppBackend.o, - /opt/local/lib/LLVMCellSPU.o, - /opt/local/lib/LLVMCBackend.o, - "-lLLVMBitWriter", /opt/local/lib/LLVMPowerPC.o, - "-lLLVMAsmParser", - /opt/local/lib/LLVMARM.o, - "-lLLVMArchive", - "-lLLVMBitReader", - /opt/local/lib/LLVMAlpha.o, "-lLLVMSelectionDAG", "-lLLVMCodeGen", "-lLLVMScalarOpts", @@ -1452,7 +1407,12 @@ INSTALL_PATH = "$(HOME)/Library/Frameworks"; LIBRARY_SEARCH_PATHS = /opt/local/lib; MACOSX_DEPLOYMENT_TARGET = ""; - OTHER_CFLAGS = "-DHAVE_FFI_H"; + OTHER_CFLAGS = ( + "-DHAVE_FFI_H", + "-DUSE_LLVM", + "-DLLVM_MAJOR_VERSION=2", + "-DLLVM_MINOR_VERSION=3", + ); OTHER_CPLUSPLUSFLAGS = ( "$(OTHER_CFLAGS)", "-I/opt/local/include", @@ -1469,29 +1429,13 @@ "-L/opt/local/lib", "-lpthread", "-lm", - /opt/local/lib/LLVMX86.o, - /opt/local/lib/LLVMSparc.o, - /opt/local/lib/LLVMPIC16.o, - /opt/local/lib/LLVMMSIL.o, - /opt/local/lib/LLVMMips.o, - "-lLLVMLinker", "-lLLVMipo", - /opt/local/lib/LLVMInterpreter.o, - "-lLLVMInstrumentation", - /opt/local/lib/LLVMIA64.o, + "-lLLVMLinker", + "-lLLVMArchive", + "-lLLVMBitReader", /opt/local/lib/LLVMExecutionEngine.o, /opt/local/lib/LLVMJIT.o, - "-lLLVMDebugger", - /opt/local/lib/LLVMCppBackend.o, - /opt/local/lib/LLVMCellSPU.o, - /opt/local/lib/LLVMCBackend.o, - "-lLLVMBitWriter", /opt/local/lib/LLVMPowerPC.o, - "-lLLVMAsmParser", - /opt/local/lib/LLVMARM.o, - "-lLLVMArchive", - "-lLLVMBitReader", - /opt/local/lib/LLVMAlpha.o, "-lLLVMSelectionDAG", "-lLLVMCodeGen", "-lLLVMScalarOpts", |