- Update to r195116 from llvm 3.4 branch

- Refresh patches
  * aarch64-suse-support.patch
  * arm_suse_support.diff
  * assume-opensuse.patch
  * default-to-i586.patch
- Drop upstream patches
  * llvm-disable-pretty-stack-trace.patch
  * r189852.diff
  * unreachable-code.patch

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=287
This commit is contained in:
Ismail Dönmez
2013-11-19 09:12:59 +00:00
committed by Git OBS Bridge
parent e28977ca42
commit 359cf1e322
11 changed files with 139 additions and 301 deletions

View File

@@ -16,31 +16,17 @@
#
%define _revision 183898
%define _release_version 3.3
%define _supported_archs "AArch64;ARM;PowerPC;X86"
%define _experimental_archs "R600"
%ifarch %arm
%define _supported_archs "ARM"
%endif
%ifarch ppc64
%define _supported_archs "PowerPC"
%endif
%ifarch s390x
%define _supported_archs "SystemZ"
%endif
%define _revision 195116
%define _release_version 3.4
Name: llvm
Version: 3.3
Version: 3.3.93
Release: 0
Summary: Low Level Virtual Machine
License: NCSA
Group: Development/Languages/Other
Url: http://www.llvm.org
Source0: %{name}-%{_release_version}.tar.bz2
Source0: %{name}-%{version}.tar.bz2
Source100: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Allow us to set revision
Patch1: set-revision.patch
@@ -53,17 +39,12 @@ Patch4: default-to-i586.patch
Patch5: llvm-config-lib64.patch
# PATCH-FIX-OPENSUSE arm_suse_support.diff --Enable ARM suse toolchain support
Patch6: arm_suse_support.diff
# PATCH-FIX-OPENSUSE unreachable-code.patch -- Unreachable code warning triggered on SLE
Patch7: unreachable-code.patch
Patch8: cmake-host-triple.patch
# PATCH-FIX-OPENSUSE aarch64-suse-support.patch -- Enable AArch64 suse toolchain support
Patch9: aarch64-suse-support.patch
# PATCH-FIX-OPENSUSE llvm-no-visibility.patch -- Disable visibility
Patch10: llvm-no-visibility.patch
# PATCH-FIX-OPENSUSE llvm-disable-pretty-stack-trace.patch -- https://bugs.freedesktop.org/show_bug.cgi?id=60929
Patch11: llvm-disable-pretty-stack-trace.patch
Patch12: arm-remove-xfails.diff
Patch13: r189852.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
@@ -160,7 +141,7 @@ Requires: vim
This package contains vim plugins for LLVM like syntax highlighting.
%prep
%setup -q -n %{name}-%{_release_version}
%setup -q -n %{name}
%patch1 -p1
%patch2 -p1
%patch3 -p1
@@ -169,15 +150,12 @@ This package contains vim plugins for LLVM like syntax highlighting.
%patch5 -p1
%endif
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%ifarch s390 s390x
%patch10 -p1
%endif
%patch11 -p1
%patch12
%patch13
# We hardcode i586
rm tools/clang/test/Driver/x86_features.c
@@ -251,7 +229,7 @@ cmake -G "Unix Makefiles" \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=OFF \
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
-DLLVM_TARGETS_TO_BUILD=host \
-DCMAKE_C_FLAGS="-O0" \
-DCMAKE_CXX_FLAGS="-O0" \
-DLLVM_HOST_TRIPLE=%{host_triple} \
@@ -295,11 +273,11 @@ cmake -G "Unix Makefiles" \
%if 0%{?suse_version} >= 1220
-DLLVM_BINUTILS_INCDIR=/usr/include \
%endif
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
%ifnarch %arm ppc64 s390x
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=%{_experimental_archs} \
%ifarch %{ix86} x86_64
-DLLVM_TARGETS_TO_BUILD="host;R600" \
%else
-DLLVM_TARGETS_TO_BUILD=host \
%endif
-DLLVM_BUILD_TESTS=OFF \
..
make %{?_smp_mflags} VERBOSE=1