From 1a8002cf6531457e0624d9719f13fcb50790f18e Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Wed, 25 Jun 2014 23:44:00 -0600 Subject: [PATCH] fix LLVM_VERSION for minor versions != 0 llvm version 3.4.2 got converted to 3_4.2 and not 3_4 as intended. see https://bugs.gentoo.org/show_bug.cgi?id=515114 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b03fc05e..e6e742a3 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,7 @@ endif ARCH_TYPE = $(shell arch) LLVM_CXXFLAGS=$(shell $(LLVM_CONFIG) --cppflags) -LLVM_VERSION=LLVM_$(shell $(LLVM_CONFIG) --version | sed -e s/\\./_/ -e s/svn// -e s/\.0//) +LLVM_VERSION=LLVM_$(shell $(LLVM_CONFIG) --version | sed -e 's/svn//' -e 's/\./_/' -e 's/\..*//') LLVM_VERSION_DEF=-D$(LLVM_VERSION) LLVM_COMPONENTS = engine ipo bitreader bitwriter instrumentation linker