- 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:
parent
e2496b1b07
commit
485f05ee26
@ -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
|
Tue Dec 27 21:33:48 UTC 2011 - idonmez@suse.com
|
||||||
|
|
||||||
|
14
llvm.spec
14
llvm.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package llvm
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,6 +15,7 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define _revision 145598
|
%define _revision 145598
|
||||||
%define _release_version 3.0
|
%define _release_version 3.0
|
||||||
%define _supported_archs "ARM;X86"
|
%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)
|
Summary: CLANG frontend for LLVM (devel package)
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Requires: llvm-devel = %{version}
|
|
||||||
Requires: clang = %{version}
|
Requires: clang = %{version}
|
||||||
|
Requires: llvm-devel = %{version}
|
||||||
%{py_requires}
|
%{py_requires}
|
||||||
|
|
||||||
%description clang-devel
|
%description clang-devel
|
||||||
@ -156,6 +157,9 @@ pushd stage1
|
|||||||
--enable-optimized \
|
--enable-optimized \
|
||||||
--disable-assertions \
|
--disable-assertions \
|
||||||
--with-optimize-option="-O0" \
|
--with-optimize-option="-O0" \
|
||||||
|
%ifarch x86
|
||||||
|
--host=i586-linux \
|
||||||
|
%endif
|
||||||
--enable-targets=host
|
--enable-targets=host
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -168,6 +172,9 @@ export CXX=$TOPLEVEL/stage1/Release/bin/clang++
|
|||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
%ifarch x86
|
||||||
|
-DLLVM_TARGET_ARCH=i586-linux
|
||||||
|
%endif
|
||||||
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
|
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
|
||||||
..
|
..
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -187,6 +194,9 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|||||||
-DLLVM_ENABLE_TIMESTAMPS=FALSE \
|
-DLLVM_ENABLE_TIMESTAMPS=FALSE \
|
||||||
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
|
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
|
||||||
-DCLANG_VENDOR="SUSE Linux" \
|
-DCLANG_VENDOR="SUSE Linux" \
|
||||||
|
%ifarch x86
|
||||||
|
-DLLVM_TARGET_ARCH=i586-linux \
|
||||||
|
%endif
|
||||||
%if "%{_lib}" == "lib64"
|
%if "%{_lib}" == "lib64"
|
||||||
-DLLVM_LIBDIR_SUFFIX=64 \
|
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user