auto detect llvm version
authorChris Li <chrisl@vmware.com>
Mon, 22 Mar 2010 20:27:32 +0000 (13:27 -0700)
committerChris Li <chrisl@vmt500.localdomain>
Fri, 26 Mar 2010 22:56:02 +0000 (15:56 -0700)
configs/linux-llvm

index 608f42d6df017b22c7443c4be6e2288a23099000..3a15f1d6d8bab8c0cbe726bd2f8cb6249e783c67 100644 (file)
@@ -24,6 +24,8 @@ ifeq ($(LLVM_VERSION),)
   MESA_LLVM=0
 else
   MESA_LLVM=1
+  HAVE_LLVM := 0x0$(subst .,0,$(LLVM_VERSION:svn=))
+  DEFINES += -DHAVE_LLVM=$(HAVE_LLVM)
 #  $(info Using LLVM version: $(LLVM_VERSION))
 endif