SHA256
1
0
forked from pool/llvm

- Update to r197142 from release_34 branch

- Disable assertions again now that PPC64 backend is fixed

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=321
This commit is contained in:
Ismail Dönmez 2013-12-12 10:46:34 +00:00 committed by Git OBS Bridge
parent 4632243a0b
commit c0c4af6b01
4 changed files with 16 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5046ba1175f271b0f178f69e694baebc9931979da74e78192a3e20755d7a5566
size 27863933

3
llvm-3.4.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f343e45d71f91d608ec5b43919bce68ee197b838dc15ea9a3ebab6d8b7b295e
size 27905400

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 12 10:43:42 UTC 2013 - idonmez@suse.com
- Update to r197142 from release_34 branch
- Disable assertions again now that PPC64 backend is fixed
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 10 09:48:59 UTC 2013 - idonmez@suse.com Tue Dec 10 09:48:59 UTC 2013 - idonmez@suse.com

View File

@ -16,11 +16,11 @@
# #
%define _revision 196899 %define _revision 197142
%define _release_version 3.4 %define _release_version 3.4
Name: llvm Name: llvm
Version: 3.3.93 Version: 3.4
Release: 0 Release: 0
Summary: Low Level Virtual Machine Summary: Low Level Virtual Machine
License: NCSA License: NCSA
@ -154,7 +154,7 @@ Requires: python
This package contains the Python bindings to clang (C language) frontend for LLVM. This package contains the Python bindings to clang (C language) frontend for LLVM.
%prep %prep
%setup -q -n %{name} %setup -q
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
@ -230,6 +230,7 @@ pushd stage1
%ifarch ppc64 %ifarch ppc64
%define host_triple powerpc64-suse-linux %define host_triple powerpc64-suse-linux
sed -i s,'${CMAKE_SYSTEM_PROCESSOR}','"PowerPC"',g ../cmake/modules/AddLLVM.cmake sed -i s,'${CMAKE_SYSTEM_PROCESSOR}','"PowerPC"',g ../cmake/modules/AddLLVM.cmake
rm -rf ../projects/compiler-rt
%endif %endif
%ifarch s390x %ifarch s390x
%define host_triple s390x-suse-linux %define host_triple s390x-suse-linux
@ -240,7 +241,7 @@ rm -rf ../projects/compiler-rt
cmake -G "Unix Makefiles" \ cmake -G "Unix Makefiles" \
-DBUILD_SHARED_LIBS=OFF \ -DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=ON \ -DLLVM_ENABLE_ASSERTIONS=OFF \
-DLLVM_TARGETS_TO_BUILD=host \ -DLLVM_TARGETS_TO_BUILD=host \
-DCMAKE_C_FLAGS="-O0" \ -DCMAKE_C_FLAGS="-O0" \
-DCMAKE_CXX_FLAGS="-O0" \ -DCMAKE_CXX_FLAGS="-O0" \
@ -280,7 +281,7 @@ cmake -G "Unix Makefiles" \
%endif %endif
-DLLVM_REQUIRES_RTTI=ON \ -DLLVM_REQUIRES_RTTI=ON \
-DLLVM_ENABLE_TIMESTAMPS=OFF \ -DLLVM_ENABLE_TIMESTAMPS=OFF \
-DLLVM_ENABLE_ASSERTIONS=ON \ -DLLVM_ENABLE_ASSERTIONS=OFF \
-DLLVM_ENABLE_PIC=ON \ -DLLVM_ENABLE_PIC=ON \
%if 0%{?suse_version} >= 1220 %if 0%{?suse_version} >= 1220
-DLLVM_BINUTILS_INCDIR=/usr/include \ -DLLVM_BINUTILS_INCDIR=/usr/include \
@ -463,7 +464,7 @@ rm %{buildroot}%{_mandir}/man1/lit.1
%{_libdir}/bfd-plugins/ %{_libdir}/bfd-plugins/
%endif %endif
%{_libdir}/clang %{_libdir}/clang
%ifnarch %arm aarch64 s390 s390x %ifnarch %arm aarch64 ppc64 s390 s390x
%{_libdir}/clang/%{_release_version}/lib/linux/ %{_libdir}/clang/%{_release_version}/lib/linux/
%endif %endif