mirror of
https://abf.rosa.ru/djam/lld.git
synced 2025-02-23 14:32:55 +00:00
Add clang for 2016.1
This commit is contained in:
parent
76504d66f9
commit
b820f7ad32
1 changed files with 20 additions and 1 deletions
21
lld.spec
21
lld.spec
|
@ -2,12 +2,22 @@
|
||||||
%define libname %mklibname %{name} %{major}
|
%define libname %mklibname %{name} %{major}
|
||||||
%define devname %mklibname %{name} -d
|
%define devname %mklibname %{name} -d
|
||||||
|
|
||||||
|
%if %{mdvver} <= 201610
|
||||||
|
%bcond_without clang
|
||||||
|
%else
|
||||||
|
%bcond_with clang
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with clang}
|
||||||
|
%define debug_package %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
%bcond_without git
|
%bcond_without git
|
||||||
|
|
||||||
Summary: The LLVM Linker
|
Summary: The LLVM Linker
|
||||||
Name: lld
|
Name: lld
|
||||||
Version: 10.0.1
|
Version: 10.0.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Group: Development/Other
|
Group: Development/Other
|
||||||
License: NCSA
|
License: NCSA
|
||||||
Url: http://llvm.org
|
Url: http://llvm.org
|
||||||
|
@ -17,6 +27,10 @@ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{versio
|
||||||
Source0: http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
|
Source0: http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
%if %{with clang}
|
||||||
|
BuildRequires: clang
|
||||||
|
BuildRequires: libcxx-devel
|
||||||
|
%endif
|
||||||
BuildRequires: llvm-devel = %{version}
|
BuildRequires: llvm-devel = %{version}
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
@ -70,6 +84,11 @@ programs that use the LLD infrastructure.
|
||||||
%setup -qn %{name}-%{version}.src
|
%setup -qn %{name}-%{version}.src
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with clang}
|
||||||
|
%clang_gcc_wrapper
|
||||||
|
export CC=clang
|
||||||
|
export CXX=clang++
|
||||||
|
%endif
|
||||||
%cmake \
|
%cmake \
|
||||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||||
-DLLVM_DYLIB_COMPONENTS="all" \
|
-DLLVM_DYLIB_COMPONENTS="all" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue