Accepting request 89231 from devel:tools:compiler

- Update to r142912 llvm-3.0 branch
  * Fixes to python bindings

- Update to r142641
  * llvm/clang 3.0 rc1

- Enable ARM code generation 

- Fix libdir on x86_64 

- Update to r142341
  * First build from 3.0 branch
  * -Wc++98-compat warnings for the lexer
  * Add flags for the remaining shift related warnings
    (-Wshift-count-negative, -Wshift-count-overflow).
  * Only warn in -Wliteral-conversion if the conversion 
    loses information
  * Added clang_getCompletionAnnotation and 
    clang_getCompletionNumAnnotations to retrieve annotations 
    from completion string.
  * Add support for -std=gnu90 and -std=c++03, for compatibility 
    with modern gcc.
- Switch to tar.bz2 and remove xz dependency

OBS-URL: https://build.opensuse.org/request/show/89231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/llvm?expand=0&rev=15
This commit is contained in:
Stephan Kulow 2011-10-25 14:15:23 +00:00 committed by Git OBS Bridge
commit 9e150b5b9f
4 changed files with 56 additions and 12 deletions

View File

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

View File

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

View File

@ -1,3 +1,42 @@
-------------------------------------------------------------------
Tue Oct 25 07:13:47 UTC 2011 - idonmez@suse.com
- Update to r142912 llvm-3.0 branch
* Fixes to python bindings
-------------------------------------------------------------------
Fri Oct 21 06:57:07 UTC 2011 - idonmez@suse.com
- Update to r142641
* llvm/clang 3.0 rc1
-------------------------------------------------------------------
Thu Oct 20 17:56:08 UTC 2011 - idonmez@suse.com
- Enable ARM code generation
-------------------------------------------------------------------
Wed Oct 19 15:47:10 UTC 2011 - idonmez@suse.com
- Fix libdir on x86_64
-------------------------------------------------------------------
Tue Oct 18 10:42:09 UTC 2011 - idonmez@suse.com
- Update to r142341
* First build from 3.0 branch
* -Wc++98-compat warnings for the lexer
* Add flags for the remaining shift related warnings
(-Wshift-count-negative, -Wshift-count-overflow).
* Only warn in -Wliteral-conversion if the conversion
loses information
* Added clang_getCompletionAnnotation and
clang_getCompletionNumAnnotations to retrieve annotations
from completion string.
* Add support for -std=gnu90 and -std=c++03, for compatibility
with modern gcc.
- Switch to tar.bz2 and remove xz dependency
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 29 08:10:42 UTC 2011 - idonmez@suse.com Thu Sep 29 08:10:42 UTC 2011 - idonmez@suse.com

View File

@ -16,7 +16,7 @@
# #
%define _revision 140782 %define _revision 142912
%define _release_version 3.0 %define _release_version 3.0
%if 0%{?suse_version} >= 1200 %if 0%{?suse_version} >= 1200
@ -26,13 +26,13 @@
%endif %endif
Name: llvm Name: llvm
Version: 2.9.99.svn20110929 Version: 2.9.99.svn20111025
Release: 1 Release: 1
License: NCSA License: NCSA
Summary: Low Level Virtual Machine Summary: Low Level Virtual Machine
Url: http://www.llvm.org Url: http://www.llvm.org
Group: Development/Languages/Other Group: Development/Languages/Other
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.bz2
Source100: %{name}-rpmlintrc Source100: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Allow us to set revision # PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Allow us to set revision
Patch1: set-revision.patch Patch1: set-revision.patch
@ -55,7 +55,6 @@ BuildRequires: libtool
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: tcl-devel BuildRequires: tcl-devel
BuildRequires: tk-devel BuildRequires: tk-devel
BuildRequires: xz
# Code10 does not have libffi # Code10 does not have libffi
%if 0%{?suse_version} > 1100 %if 0%{?suse_version} > 1100
@ -141,7 +140,7 @@ cd stage1
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_ENABLE_ASSERTIONS=TRUE \ -DLLVM_ENABLE_ASSERTIONS=TRUE \
-DLLVM_TARGETS_TO_BUILD=X86 \ -DLLVM_TARGETS_TO_BUILD="ARM;X86" \
.. ..
make %{?_smp_mflags} make %{?_smp_mflags}
@ -181,6 +180,11 @@ cd stage2
%makeinstall %makeinstall
cd .. cd ..
# Fixup libdir for x86-64
%ifarch x86_64
sed -i s,ABS_RUN_DIR/lib,ABS_RUN_DIR/lib64, %{buildroot}/%{_bindir}/llvm-config
%endif
# cleanup # cleanup
file %{buildroot}/%{_bindir}/* | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d file %{buildroot}/%{_bindir}/* | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d
file %{buildroot}/%{_libdir}/%{name}/*.so | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d file %{buildroot}/%{_libdir}/%{name}/*.so | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d
@ -243,6 +247,8 @@ mv utils/vim/README utils/vim/README.vim
# Create man pages because cmake buildsystem doesn't do for us # Create man pages because cmake buildsystem doesn't do for us
install -m 755 -d %{buildroot}%{_mandir}/man1 install -m 755 -d %{buildroot}%{_mandir}/man1
# tblgen is not installed anymore.
rm docs/CommandGuide/tblgen.pod
for i in docs/CommandGuide/*.pod tools/clang/docs/tools/*.pod; do for i in docs/CommandGuide/*.pod tools/clang/docs/tools/*.pod; do
page=`echo $i|awk -F"/" '{print $(NF)}'|sed s,.pod,,` && page=`echo $i|awk -F"/" '{print $(NF)}'|sed s,.pod,,` &&
pod2man -s1 $i %{buildroot}%{_mandir}/man1/$page.1; pod2man -s1 $i %{buildroot}%{_mandir}/man1/$page.1;
@ -263,9 +269,9 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.*
%fdupes -s %{buildroot}%{_docdir}/%{name} %fdupes -s %{buildroot}%{_docdir}/%{name}
%fdupes -s %{buildroot}%{_docdir}/%{name}-doc %fdupes -s %{buildroot}%{_docdir}/%{name}-doc
%post -p /sbin/ldconfig %post -n llvm-clang-devel -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -n llvm-clang-devel -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -292,7 +298,6 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.*
%{_bindir}/clang %{_bindir}/clang
%{_bindir}/clang-* %{_bindir}/clang-*
%{_bindir}/clang++ %{_bindir}/clang++
%{_bindir}/tblgen
%{_bindir}/c-index-test %{_bindir}/c-index-test
%{_bindir}/ccc-analyzer %{_bindir}/ccc-analyzer
%{_bindir}/c++-analyzer %{_bindir}/c++-analyzer
@ -304,7 +309,6 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.*
%{py_sitedir}/Resources %{py_sitedir}/Resources
%{_datadir}/clang %{_datadir}/clang
%{_mandir}/man1/clang.1.gz %{_mandir}/man1/clang.1.gz
%{_mandir}/man1/tblgen.1.gz
%dir %{_libdir}/clang %dir %{_libdir}/clang
%dir %{_libdir}/clang/* %dir %{_libdir}/clang/*
%dir %{_libdir}/clang/*/include %dir %{_libdir}/clang/*/include
@ -321,6 +325,7 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.*
%{_libdir}/clang/*/include/nmmintrin.h %{_libdir}/clang/*/include/nmmintrin.h
%{_libdir}/clang/*/include/pmmintrin.h %{_libdir}/clang/*/include/pmmintrin.h
%{_libdir}/clang/*/include/smmintrin.h %{_libdir}/clang/*/include/smmintrin.h
%{_libdir}/clang/*/include/stdalign.h
%{_libdir}/clang/*/include/stdarg.h %{_libdir}/clang/*/include/stdarg.h
%{_libdir}/clang/*/include/stdbool.h %{_libdir}/clang/*/include/stdbool.h
%{_libdir}/clang/*/include/stddef.h %{_libdir}/clang/*/include/stddef.h