mirror of
https://abf.rosa.ru/djam/lld.git
synced 2025-02-23 14:32:55 +00:00
12.0.1
This commit is contained in:
parent
cfcf180b62
commit
28221ceb34
1 changed files with 17 additions and 15 deletions
32
lld.spec
32
lld.spec
|
@ -1,16 +1,18 @@
|
|||
%global optflags %(echo %{optflags} | sed -e 's/-ffat-lto-objects//g' -e 's/-fvar-tracking-assignments//g' -e 's/-Wa,--compress-debug-sections//g' -e 's/\-nostdinc++//g' )
|
||||
|
||||
%define major %(echo %version |cut -d. -f1)
|
||||
%define libname %mklibname %{name} %{major}
|
||||
%define devname %mklibname %{name} -d
|
||||
|
||||
%if %{mdvver} <= 201610
|
||||
%bcond_without clang
|
||||
%else
|
||||
%bcond_with clang
|
||||
%endif
|
||||
#if %{mdvver} <= 201610
|
||||
#bcond_without clang
|
||||
#else
|
||||
#bcond_with clang
|
||||
#endif
|
||||
|
||||
%if %{with clang}
|
||||
%define debug_package %{nil}
|
||||
%endif
|
||||
#if %{with clang}
|
||||
#define debug_package %{nil}
|
||||
#endif
|
||||
|
||||
%bcond_without git
|
||||
|
||||
|
@ -20,7 +22,7 @@ Version: 12.0.1
|
|||
Release: 1
|
||||
Group: Development/Other
|
||||
License: NCSA
|
||||
Url: http://llvm.org
|
||||
URL: http://llvm.org
|
||||
%if %{with git}
|
||||
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
|
||||
%else
|
||||
|
@ -28,10 +30,10 @@ Source0: http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
|
|||
%endif
|
||||
Source1: https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-%{version}/libunwind/include/mach-o/compact_unwind_encoding.h
|
||||
BuildRequires: cmake
|
||||
%if %{with clang}
|
||||
#if %{with clang}
|
||||
BuildRequires: clang
|
||||
BuildRequires: libcxx-devel
|
||||
%endif
|
||||
#endif
|
||||
BuildRequires: llvm-devel = %{version}
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
@ -91,11 +93,11 @@ mkdir include/mach-o
|
|||
cp %{S:1} include/mach-o
|
||||
|
||||
%build
|
||||
%if %{with clang}
|
||||
#if %{with clang}
|
||||
%clang_gcc_wrapper
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
%endif
|
||||
#export CC=clang
|
||||
#export CXX=clang++
|
||||
#endif
|
||||
|
||||
%cmake \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
|
|
Loading…
Add table
Reference in a new issue