summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorMatthias Benkard <mulk@minimulk.mst-plus>2008-08-19 17:31:45 +0200
committerMatthias Benkard <mulk@minimulk.mst-plus>2008-08-19 17:31:45 +0200
commit54961d09a75b3b7c3dc411c47567caf0d963dfbf (patch)
tree595deda2e64d3eab421fae8c5f032386ff385e01 /GNUmakefile
parentae57d7eefdb5c22882c6572d5369fa30428efe98 (diff)
Make Toilet Lisp compile with LLVM 2.3.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 7fb8754..24bfd8f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -72,11 +72,11 @@ ToiletKit_LDFLAGS = -lgmp -lffi -ldl
USE_LLVM := YES
ifeq ($(USE_LLVM),YES)
-ADDITIONAL_OBJCCFLAGS = $(ADDITIONAL_OBJCFLAGS)
+ADDITIONAL_OBJCCFLAGS += $(ADDITIONAL_OBJCFLAGS)
ToiletKit_OBJC_FILES += MLKLexicalContext-MLKLLVMCompilation.m
-ToiletKit_OBJCC_FILES = MLKLLVMCompiler.mm
-ToiletKit_OBJCFLAGS = -DUSE_LLVM
-ToiletKit_OBJCCFLAGS = -DUSE_LLVM `llvm-config --cxxflags` $(ToiletKit_OBJCFLAGS)
+ToiletKit_OBJCC_FILES += MLKLLVMCompiler.mm
+ToiletKit_OBJCFLAGS += -DUSE_LLVM -DLLVM_MAJOR_VERSION=`llvm-config --version | cut -f 1 -d.` -DLLVM_MINOR_VERSION=`llvm-config --version | cut -f 2 -d. | sed s/svn//`
+ToiletKit_OBJCCFLAGS += `llvm-config --cxxflags` $(ToiletKit_OBJCFLAGS)
ToiletKit_LDFLAGS += `llvm-config --ldflags` `llvm-config --libs backend engine linker codegen transformutils scalaropts analysis ipo`
endif