SHA256
1
0
forked from pool/llvm

- Target i586-linux for 32bit builds

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=117
This commit is contained in:
Ismail Dönmez 2012-03-20 12:39:06 +00:00 committed by Git OBS Bridge
parent e2496b1b07
commit 485f05ee26
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 20 12:40:27 UTC 2012 - idonmez@suse.com
- Target i586-linux for 32bit builds
-------------------------------------------------------------------
Tue Dec 27 21:33:48 UTC 2011 - idonmez@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package llvm
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _revision 145598
%define _release_version 3.0
%define _supported_archs "ARM;X86"
@ -112,8 +113,8 @@ This package contains the clang (C language) frontend for LLVM.
Summary: CLANG frontend for LLVM (devel package)
Group: Development/Languages/Other
Requires: llvm-devel = %{version}
Requires: clang = %{version}
Requires: llvm-devel = %{version}
%{py_requires}
%description clang-devel
@ -156,6 +157,9 @@ pushd stage1
--enable-optimized \
--disable-assertions \
--with-optimize-option="-O0" \
%ifarch x86
--host=i586-linux \
%endif
--enable-targets=host
make %{?_smp_mflags}
@ -168,6 +172,9 @@ export CXX=$TOPLEVEL/stage1/Release/bin/clang++
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release \
%ifarch x86
-DLLVM_TARGET_ARCH=i586-linux
%endif
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
..
make %{?_smp_mflags}
@ -187,6 +194,9 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLLVM_ENABLE_TIMESTAMPS=FALSE \
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
-DCLANG_VENDOR="SUSE Linux" \
%ifarch x86
-DLLVM_TARGET_ARCH=i586-linux \
%endif
%if "%{_lib}" == "lib64"
-DLLVM_LIBDIR_SUFFIX=64 \
%endif