diff --git a/cmake-patchversion.patch b/cmake-patchversion.patch new file mode 100644 index 0000000..dba8e06 --- /dev/null +++ b/cmake-patchversion.patch @@ -0,0 +1,14 @@ +Index: llvm-3.4.2/include/llvm/Config/config.h.cmake +=================================================================== +--- llvm-3.4.2.orig/include/llvm/Config/config.h.cmake ++++ llvm-3.4.2/include/llvm/Config/config.h.cmake +@@ -603,6 +603,9 @@ + /* Minor version of the LLVM API */ + #cmakedefine LLVM_VERSION_MINOR ${LLVM_VERSION_MINOR} + ++/* Patch version of the LLVM API */ ++#cmakedefine LLVM_VERSION_PATCH ${LLVM_VERSION_PATCH} ++ + /* Define if the OS needs help to load dependent libraries for dlopen(). */ + #cmakedefine LTDL_DLOPEN_DEPLIBS ${LTDL_DLOPEN_DEPLIBS} + diff --git a/llvm.changes b/llvm.changes index 6d52b9f..f40201c 100644 --- a/llvm.changes +++ b/llvm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 23 17:00:40 UTC 2014 - idonmez@suse.com + +- Add cmake-patchversion.patch to sync config.h.in + with config.h.cmake + ------------------------------------------------------------------- Tue Jul 22 12:09:53 UTC 2014 - idonmez@suse.com diff --git a/llvm.spec b/llvm.spec index 21afe8a..f05e6c4 100644 --- a/llvm.spec +++ b/llvm.spec @@ -46,6 +46,7 @@ Patch9: arm-remove-xfails.diff # PATCH-FIX-OPENSUSE asan-disable-hugemalloctest.patch -- Disable ASAN HugeMallocTest Patch10: asan-disable-hugemalloctest.patch Patch11: clang-resourcedirs.patch +Patch12: cmake-patchversion.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -155,6 +156,7 @@ This package contains the Python bindings to clang (C language) frontend for LLV %patch9 %patch10 -p1 %patch11 -p1 +%patch12 -p1 # We hardcode i586 rm tools/clang/test/Driver/x86_features.c