Add clang for 2016.1

This commit is contained in:
Alzim 2020-08-14 14:04:33 +03:00
parent 76504d66f9
commit b820f7ad32

View file

@ -2,12 +2,22 @@
%define libname %mklibname %{name} %{major}
%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
Summary: The LLVM Linker
Name: lld
Version: 10.0.1
Release: 1
Release: 2
Group: Development/Other
License: NCSA
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
%endif
BuildRequires: cmake
%if %{with clang}
BuildRequires: clang
BuildRequires: libcxx-devel
%endif
BuildRequires: llvm-devel = %{version}
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
@ -70,6 +84,11 @@ programs that use the LLD infrastructure.
%setup -qn %{name}-%{version}.src
%build
%if %{with clang}
%clang_gcc_wrapper
export CC=clang
export CXX=clang++
%endif
%cmake \
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
-DLLVM_DYLIB_COMPONENTS="all" \