|
|
53102b |
%bcond_with compat_build
|
|
|
53102b |
%bcond_without check
|
|
|
7cde34 |
|
|
|
7375a1 |
%global maj_ver 15
|
|
|
7cde34 |
%global min_ver 0
|
|
|
7375a1 |
%global patch_ver 0
|
|
|
53102b |
#global rc_ver 4
|
|
|
53102b |
%global clang_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
|
|
7cde34 |
|
|
|
53102b |
%if %{with compat_build}
|
|
|
b99d8d |
%global pkg_name clang%{maj_ver}
|
|
|
7cde34 |
# Install clang to same prefix as llvm, so that apps that use llvm-config
|
|
|
7cde34 |
# will also be able to find clang libs.
|
|
|
b99d8d |
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
|
|
7cde34 |
%global install_bindir %{install_prefix}/bin
|
|
|
7cde34 |
%global install_includedir %{install_prefix}/include
|
|
|
7cde34 |
%global install_libdir %{install_prefix}/lib
|
|
|
7cde34 |
|
|
|
7cde34 |
%global pkg_bindir %{install_bindir}
|
|
|
b99d8d |
%global pkg_includedir %{install_includedir}
|
|
|
7cde34 |
%global pkg_libdir %{install_libdir}
|
|
|
7cde34 |
%else
|
|
|
7cde34 |
%global pkg_name clang
|
|
|
7cde34 |
%global install_prefix /usr
|
|
|
b99d8d |
%global pkg_libdir %{_libdir}
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
53102b |
%global build_install_prefix %{buildroot}%{install_prefix}
|
|
|
53102b |
|
|
|
53102b |
%ifarch ppc64le aarch64
|
|
|
53102b |
# Too many threads on some systems causes OOM errors.
|
|
|
53102b |
%global _smp_mflags -j8
|
|
|
53102b |
%endif
|
|
|
53102b |
|
|
|
53102b |
%global clang_srcdir clang-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src
|
|
|
53102b |
%global clang_tools_srcdir clang-tools-extra-%{clang_version}%{?rc_ver:rc%{rc_ver}}.src
|
|
|
53102b |
|
|
|
53102b |
%if !%{maj_ver} && 0%{?rc_ver}
|
|
|
53102b |
%global abi_revision 2
|
|
|
53102b |
%endif
|
|
|
53102b |
|
|
|
7cde34 |
Name: %pkg_name
|
|
|
803c1c |
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}
|
|
|
fa0eb4 |
Release: 1%{?dist}
|
|
|
7cde34 |
Summary: A C language family front-end for LLVM
|
|
|
7cde34 |
|
|
|
7cde34 |
License: NCSA
|
|
|
7cde34 |
URL: http://llvm.org
|
|
|
53102b |
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz
|
|
|
53102b |
Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_srcdir}.tar.xz.sig
|
|
|
53102b |
%if %{without compat_build}
|
|
|
53102b |
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz
|
|
|
53102b |
Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{clang_version}%{?rc_ver:-rc%{rc_ver}}/%{clang_tools_srcdir}.tar.xz.sig
|
|
|
7cde34 |
%endif
|
|
|
7375a1 |
Source4: release-keys.asc
|
|
|
53102b |
%if !0%{?compat_build}
|
|
|
53102b |
Source5: macros.%{name}
|
|
|
53102b |
%endif
|
|
|
7cde34 |
|
|
|
b99d8d |
# Patches for clang
|
|
|
b99d8d |
Patch0: 0001-PATCH-clang-Reorganize-gtest-integration.patch
|
|
|
b99d8d |
Patch1: 0002-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch
|
|
|
b99d8d |
Patch2: 0003-PATCH-clang-Don-t-install-static-libraries.patch
|
|
|
53102b |
Patch3: 0001-Driver-Add-a-gcc-equivalent-triple-to-the-list-of-tr.patch
|
|
|
53102b |
Patch4: 0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch
|
|
|
803c1c |
# This patch can be dropped once gcc-12.0.1-0.5.fc36 is in the repo.
|
|
|
803c1c |
Patch5: 0001-Work-around-gcc-miscompile.patch
|
|
|
803c1c |
Patch7: 0010-PATCH-clang-Produce-DWARF4-by-default.patch
|
|
|
803c1c |
Patch8: disable-recommonmark.patch
|
|
|
53102b |
|
|
|
7cde34 |
|
|
|
b99d8d |
# Patches for clang-tools-extra
|
|
|
803c1c |
%if %{without compat_build}
|
|
|
7375a1 |
Patch201: 0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch
|
|
|
b99d8d |
%endif
|
|
|
7cde34 |
|
|
|
7cde34 |
BuildRequires: gcc
|
|
|
7cde34 |
BuildRequires: gcc-c++
|
|
|
7cde34 |
BuildRequires: cmake
|
|
|
7cde34 |
BuildRequires: ninja-build
|
|
|
53102b |
%if %{with compat_build}
|
|
|
b99d8d |
BuildRequires: llvm%{maj_ver}-devel = %{version}
|
|
|
b99d8d |
BuildRequires: llvm%{maj_ver}-static = %{version}
|
|
|
7cde34 |
%else
|
|
|
7cde34 |
BuildRequires: llvm-devel = %{version}
|
|
|
7cde34 |
BuildRequires: llvm-test = %{version}
|
|
|
7cde34 |
# llvm-static is required, because clang-tablegen needs libLLVMTableGen, which
|
|
|
7cde34 |
# is not included in libLLVM.so.
|
|
|
7cde34 |
BuildRequires: llvm-static = %{version}
|
|
|
b99d8d |
BuildRequires: llvm-googletest = %{version}
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
7cde34 |
BuildRequires: libxml2-devel
|
|
|
7cde34 |
BuildRequires: perl-generators
|
|
|
7cde34 |
BuildRequires: ncurses-devel
|
|
|
7cde34 |
# According to https://fedoraproject.org/wiki/Packaging:Emacs a package
|
|
|
7cde34 |
# should BuildRequires: emacs if it packages emacs integration files.
|
|
|
7cde34 |
BuildRequires: emacs
|
|
|
7cde34 |
|
|
|
7cde34 |
# The testsuite uses /usr/bin/lit which is part of the python3-lit package.
|
|
|
7cde34 |
BuildRequires: python3-lit
|
|
|
7cde34 |
|
|
|
7cde34 |
BuildRequires: python3-sphinx
|
|
|
803c1c |
BuildRequires: pandoc
|
|
|
7cde34 |
BuildRequires: libatomic
|
|
|
7cde34 |
|
|
|
803c1c |
# We need python3-devel for %%py3_shebang_fix
|
|
|
7cde34 |
BuildRequires: python3-devel
|
|
|
7cde34 |
|
|
|
b99d8d |
%if ! 0%{?rhel}
|
|
|
b99d8d |
# For reproducible pyc file generation
|
|
|
b99d8d |
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
|
|
|
b99d8d |
BuildRequires: /usr/bin/marshalparser
|
|
|
b99d8d |
%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib}
|
|
|
b99d8d |
%endif
|
|
|
b99d8d |
|
|
|
7cde34 |
# Needed for %%multilib_fix_c_header
|
|
|
7cde34 |
BuildRequires: multilib-rpm-config
|
|
|
41b1a8 |
|
|
|
803c1c |
# For origin certification
|
|
|
803c1c |
BuildRequires: gnupg2
|
|
|
803c1c |
|
|
|
41b1a8 |
# scan-build uses these perl modules so they need to be installed in order
|
|
|
41b1a8 |
# to run the tests.
|
|
|
41b1a8 |
BuildRequires: perl(Digest::MD5)
|
|
|
41b1a8 |
BuildRequires: perl(File::Copy)
|
|
|
41b1a8 |
BuildRequires: perl(File::Find)
|
|
|
41b1a8 |
BuildRequires: perl(File::Path)
|
|
|
41b1a8 |
BuildRequires: perl(File::Temp)
|
|
|
41b1a8 |
BuildRequires: perl(FindBin)
|
|
|
41b1a8 |
BuildRequires: perl(Hash::Util)
|
|
|
41b1a8 |
BuildRequires: perl(lib)
|
|
|
41b1a8 |
BuildRequires: perl(Term::ANSIColor)
|
|
|
41b1a8 |
BuildRequires: perl(Text::ParseWords)
|
|
|
41b1a8 |
BuildRequires: perl(Sys::Hostname)
|
|
|
7cde34 |
|
|
|
7cde34 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
7cde34 |
|
|
|
7cde34 |
# clang requires gcc, clang++ requires libstdc++-devel
|
|
|
7cde34 |
# - https://bugzilla.redhat.com/show_bug.cgi?id=1021645
|
|
|
7cde34 |
# - https://bugzilla.redhat.com/show_bug.cgi?id=1158594
|
|
|
7cde34 |
Requires: libstdc++-devel
|
|
|
7cde34 |
Requires: gcc-c++
|
|
|
7cde34 |
|
|
|
7cde34 |
Provides: clang(major) = %{maj_ver}
|
|
|
7cde34 |
|
|
|
803c1c |
Conflicts: compiler-rt < 11.0.0
|
|
|
7cde34 |
|
|
|
7cde34 |
%description
|
|
|
7cde34 |
clang: noun
|
|
|
7cde34 |
1. A loud, resonant, metallic sound.
|
|
|
7cde34 |
2. The strident call of a crane or goose.
|
|
|
7cde34 |
3. C-language family front-end toolkit.
|
|
|
7cde34 |
|
|
|
7cde34 |
The goal of the Clang project is to create a new C, C++, Objective C
|
|
|
7cde34 |
and Objective C++ front-end for the LLVM compiler. Its tools are built
|
|
|
7cde34 |
as libraries and designed to be loosely-coupled and extensible.
|
|
|
7cde34 |
|
|
|
b99d8d |
Install compiler-rt if you want the Blocks C language extension or to
|
|
|
b99d8d |
enable sanitization and profiling options when building, and
|
|
|
b99d8d |
libomp-devel to enable -fopenmp.
|
|
|
b99d8d |
|
|
|
7cde34 |
%package libs
|
|
|
7cde34 |
Summary: Runtime library for clang
|
|
|
b99d8d |
Requires: %{name}-resource-filesystem%{?_isa} = %{version}
|
|
|
803c1c |
# RHEL specific: Use libstdc++ from gcc12 by default. rhbz#2064507
|
|
|
4e0495 |
Requires: gcc-toolset-12-gcc-c++
|
|
|
7cde34 |
Recommends: compiler-rt%{?_isa} = %{version}
|
|
|
7cde34 |
# libomp-devel is required, so clang can find the omp.h header when compiling
|
|
|
7cde34 |
# with -fopenmp.
|
|
|
7cde34 |
Recommends: libomp-devel%{_isa} = %{version}
|
|
|
7cde34 |
Recommends: libomp%{_isa} = %{version}
|
|
|
7cde34 |
|
|
|
803c1c |
# Use lld as the default linker on ARM due to rhbz#1918924
|
|
|
803c1c |
%ifarch %{arm}
|
|
|
803c1c |
Requires: lld
|
|
|
803c1c |
%endif
|
|
|
803c1c |
|
|
|
7cde34 |
%description libs
|
|
|
7cde34 |
Runtime library for clang.
|
|
|
7cde34 |
|
|
|
7cde34 |
%package devel
|
|
|
7cde34 |
Summary: Development header files for clang
|
|
|
53102b |
%if %{without compat_build}
|
|
|
7cde34 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
7cde34 |
# The clang CMake files reference tools from clang-tools-extra.
|
|
|
7cde34 |
Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release}
|
|
|
7cde34 |
Requires: %{name}-libs = %{version}-%{release}
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
7cde34 |
%description devel
|
|
|
7cde34 |
Development header files for clang.
|
|
|
7cde34 |
|
|
|
b99d8d |
%package resource-filesystem
|
|
|
b99d8d |
Summary: Filesystem package that owns the clang resource directory
|
|
|
b99d8d |
Provides: %{name}-resource-filesystem(major) = %{maj_ver}
|
|
|
b99d8d |
|
|
|
b99d8d |
%description resource-filesystem
|
|
|
b99d8d |
This package owns the clang resouce directory: $libdir/clang/$version/
|
|
|
b99d8d |
|
|
|
53102b |
%if %{without compat_build}
|
|
|
7cde34 |
%package analyzer
|
|
|
7cde34 |
Summary: A source code analysis framework
|
|
|
7cde34 |
License: NCSA and MIT
|
|
|
7cde34 |
BuildArch: noarch
|
|
|
7cde34 |
Requires: %{name} = %{version}-%{release}
|
|
|
7cde34 |
|
|
|
7cde34 |
%description analyzer
|
|
|
7cde34 |
The Clang Static Analyzer consists of both a source code analysis
|
|
|
7cde34 |
framework and a standalone tool that finds bugs in C and Objective-C
|
|
|
7cde34 |
programs. The standalone tool is invoked from the command-line, and is
|
|
|
7cde34 |
intended to run in tandem with a build of a project or code base.
|
|
|
7cde34 |
|
|
|
7cde34 |
%package tools-extra
|
|
|
7cde34 |
Summary: Extra tools for clang
|
|
|
7cde34 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
7cde34 |
Requires: emacs-filesystem
|
|
|
7cde34 |
|
|
|
7cde34 |
%description tools-extra
|
|
|
7cde34 |
A set of extra tools built using Clang's tooling API.
|
|
|
7cde34 |
|
|
|
7cde34 |
# Put git-clang-format in its own package, because it Requires git
|
|
|
7cde34 |
# and we don't want to force users to install all those dependenices if they
|
|
|
7cde34 |
# just want clang.
|
|
|
7cde34 |
%package -n git-clang-format
|
|
|
7cde34 |
Summary: Integration of clang-format for git
|
|
|
7cde34 |
Requires: %{name}-tools-extra = %{version}-%{release}
|
|
|
7cde34 |
Requires: git
|
|
|
7cde34 |
Requires: python3
|
|
|
7cde34 |
|
|
|
7cde34 |
%description -n git-clang-format
|
|
|
7cde34 |
clang-format integration for git.
|
|
|
7cde34 |
|
|
|
7cde34 |
|
|
|
7cde34 |
%package -n python3-clang
|
|
|
7cde34 |
Summary: Python3 bindings for clang
|
|
|
7cde34 |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
7cde34 |
Requires: python3
|
|
|
7cde34 |
%description -n python3-clang
|
|
|
7cde34 |
%{summary}.
|
|
|
7cde34 |
|
|
|
7cde34 |
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
7cde34 |
|
|
|
7cde34 |
%prep
|
|
|
803c1c |
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE3}' --data='%{SOURCE0}'
|
|
|
803c1c |
|
|
|
53102b |
%if %{with compat_build}
|
|
|
b99d8d |
%autosetup -n %{clang_srcdir} -p2
|
|
|
7cde34 |
%else
|
|
|
803c1c |
|
|
|
803c1c |
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE1}'
|
|
|
7cde34 |
%setup -T -q -b 1 -n %{clang_tools_srcdir}
|
|
|
b99d8d |
%autopatch -m200 -p2
|
|
|
7cde34 |
|
|
|
b99d8d |
# failing test case
|
|
|
7375a1 |
rm test/clang-tidy/checkers/altera/struct-pack-align.cpp
|
|
|
7cde34 |
|
|
|
803c1c |
%py3_shebang_fix \
|
|
|
803c1c |
clang-tidy/tool/run-clang-tidy.py \
|
|
|
803c1c |
clang-tidy/tool/clang-tidy-diff.py \
|
|
|
7cde34 |
clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
|
|
7cde34 |
|
|
|
803c1c |
|
|
|
7cde34 |
%setup -q -n %{clang_srcdir}
|
|
|
b99d8d |
%autopatch -M200 -p2
|
|
|
7cde34 |
|
|
|
b99d8d |
# failing test case
|
|
|
b99d8d |
rm test/CodeGen/profile-filter.c
|
|
|
7cde34 |
|
|
|
803c1c |
%py3_shebang_fix \
|
|
|
803c1c |
tools/clang-format/ \
|
|
|
7cde34 |
tools/clang-format/git-clang-format \
|
|
|
7cde34 |
utils/hmaptool/hmaptool \
|
|
|
53102b |
tools/scan-view/bin/scan-view \
|
|
|
803c1c |
tools/scan-view/share/Reporter.py \
|
|
|
803c1c |
tools/scan-view/share/startfile.py \
|
|
|
53102b |
tools/scan-build-py/bin/* \
|
|
|
53102b |
tools/scan-build-py/libexec/*
|
|
|
803c1c |
|
|
|
803c1c |
# Convert markdown files to rst to cope with the absence of compatible md parser in rhel.
|
|
|
803c1c |
# The sed expression takes care of a slight difference between pandoc markdown and sphinx markdown.
|
|
|
803c1c |
find -name '*.md' | while read md; do sed -r -e 's/^( )*\* /\n\1\* /' ${md} | pandoc -f markdown -o ${md%.md}.rst ; done
|
|
|
803c1c |
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
7cde34 |
%build
|
|
|
b99d8d |
# We run the builders out of memory on armv7 and i686 when LTO is enabled
|
|
|
b99d8d |
%ifarch %{arm} i686
|
|
|
b99d8d |
%define _lto_cflags %{nil}
|
|
|
b99d8d |
%else
|
|
|
b99d8d |
# This package does not ship any object files or static libraries, so we
|
|
|
b99d8d |
# don't need -ffat-lto-objects.
|
|
|
b99d8d |
%global _lto_cflags %(echo %{_lto_cflags} | sed 's/-ffat-lto-objects//')
|
|
|
b99d8d |
%endif
|
|
|
b99d8d |
|
|
|
b99d8d |
# lto builds with gcc 11 fail while running the lit tests.
|
|
|
b99d8d |
%define _lto_cflags %{nil}
|
|
|
b99d8d |
|
|
|
7cde34 |
%if 0%{?__isa_bits} == 64
|
|
|
7cde34 |
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py
|
|
|
7cde34 |
%else
|
|
|
7cde34 |
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
b99d8d |
mkdir -p %{_vpath_builddir}
|
|
|
b99d8d |
cd %{_vpath_builddir}
|
|
|
7cde34 |
|
|
|
803c1c |
%ifarch s390 s390x %{arm} %ix86 ppc64le aarch64
|
|
|
7cde34 |
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
|
|
|
7cde34 |
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
803c1c |
|
|
|
803c1c |
%set_build_flags
|
|
|
803c1c |
CXXFLAGS="$CXXFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized"
|
|
|
803c1c |
CFLAGS="$CFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized"
|
|
|
803c1c |
|
|
|
803c1c |
# -DLLVM_ENABLE_NEW_PASS_MANAGER=ON can be removed once this patch is committed:
|
|
|
803c1c |
# https://reviews.llvm.org/D107628
|
|
|
7375a1 |
# We set CLANG_DEFAULT_PIE_ON_LINUX=OFF to match the default used by Fedora's GCC.
|
|
|
7cde34 |
%cmake .. -G Ninja \
|
|
|
7375a1 |
-DCLANG_DEFAULT_PIE_ON_LINUX=OFF \
|
|
|
7cde34 |
-DLLVM_PARALLEL_LINK_JOBS=1 \
|
|
|
7cde34 |
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
|
|
7cde34 |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
7cde34 |
-DPYTHON_EXECUTABLE=%{__python3} \
|
|
|
803c1c |
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
|
803c1c |
%ifarch s390 s390x %{arm} %ix86 ppc64le aarch64
|
|
|
7cde34 |
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
|
|
7cde34 |
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
|
|
7cde34 |
%endif
|
|
|
53102b |
%if %{with compat_build}
|
|
|
b99d8d |
-DCLANG_BUILD_TOOLS:BOOL=OFF \
|
|
|
803c1c |
-DLLVM_CONFIG:FILEPATH=%{pkg_bindir}/llvm-config-%{maj_ver}-%{__isa_bits} \
|
|
|
7cde34 |
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
|
|
7cde34 |
-DCLANG_INCLUDE_TESTS:BOOL=OFF \
|
|
|
7cde34 |
%else
|
|
|
7cde34 |
-DCLANG_INCLUDE_TESTS:BOOL=ON \
|
|
|
b99d8d |
-DLLVM_EXTERNAL_CLANG_TOOLS_EXTRA_SOURCE_DIR=../../%{clang_tools_srcdir} \
|
|
|
7cde34 |
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
|
|
7cde34 |
-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src \
|
|
|
7cde34 |
%if 0%{?__isa_bits} == 64
|
|
|
7cde34 |
-DLLVM_LIBDIR_SUFFIX=64 \
|
|
|
7cde34 |
%else
|
|
|
7cde34 |
-DLLVM_LIBDIR_SUFFIX= \
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
\
|
|
|
53102b |
%if %{with compat_build}
|
|
|
b99d8d |
-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen-%{maj_ver} \
|
|
|
7cde34 |
%else
|
|
|
b99d8d |
-DLLVM_TABLEGEN_EXE:FILEPATH=%{_bindir}/llvm-tblgen \
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
-DCLANG_ENABLE_ARCMT:BOOL=ON \
|
|
|
7cde34 |
-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \
|
|
|
7cde34 |
-DCLANG_INCLUDE_DOCS:BOOL=ON \
|
|
|
7cde34 |
-DCLANG_PLUGIN_SUPPORT:BOOL=ON \
|
|
|
7cde34 |
-DENABLE_LINKER_BUILD_ID:BOOL=ON \
|
|
|
7cde34 |
-DLLVM_ENABLE_EH=ON \
|
|
|
7cde34 |
-DLLVM_ENABLE_RTTI=ON \
|
|
|
7cde34 |
-DLLVM_BUILD_DOCS=ON \
|
|
|
53102b |
-DLLVM_ENABLE_NEW_PASS_MANAGER=ON \
|
|
|
7cde34 |
-DLLVM_ENABLE_SPHINX=ON \
|
|
|
7cde34 |
-DCLANG_LINK_CLANG_DYLIB=ON \
|
|
|
53102b |
%{?abi_revision:-DLLVM_ABI_REVISION=%{abi_revision}} \
|
|
|
7cde34 |
-DSPHINX_WARNINGS_AS_ERRORS=OFF \
|
|
|
7cde34 |
\
|
|
|
7cde34 |
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
|
|
|
7cde34 |
-DBUILD_SHARED_LIBS=OFF \
|
|
|
b99d8d |
-DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}" \
|
|
|
803c1c |
%ifarch %{arm}
|
|
|
803c1c |
-DCLANG_DEFAULT_LINKER=lld \
|
|
|
803c1c |
%endif
|
|
|
4e0495 |
-DCLANG_DEFAULT_UNWINDLIB=libgcc \
|
|
|
4e0495 |
-DGCC_INSTALL_PREFIX=/opt/rh/gcc-toolset-12/root/usr
|
|
|
7cde34 |
|
|
|
b99d8d |
%cmake_build
|
|
|
7cde34 |
|
|
|
7cde34 |
%install
|
|
|
b99d8d |
|
|
|
b99d8d |
pushd %{_vpath_builddir}
|
|
|
b99d8d |
%cmake_install
|
|
|
b99d8d |
popd
|
|
|
7cde34 |
|
|
|
53102b |
%if %{with compat_build}
|
|
|
7cde34 |
|
|
|
7cde34 |
# Remove binaries/other files
|
|
|
7cde34 |
rm -Rf %{buildroot}%{install_bindir}
|
|
|
7cde34 |
rm -Rf %{buildroot}%{install_prefix}/share
|
|
|
7cde34 |
rm -Rf %{buildroot}%{install_prefix}/libexec
|
|
|
803c1c |
# Remove scanview-py helper libs
|
|
|
803c1c |
rm -Rf %{buildroot}%{install_prefix}/lib/{libear,libscanbuild}
|
|
|
7cde34 |
|
|
|
7cde34 |
%else
|
|
|
7cde34 |
|
|
|
53102b |
# File in the macros file for other packages to use. We are not doing this
|
|
|
53102b |
# in the compat package, because the version macros would # conflict with
|
|
|
53102b |
# eachother if both clang and the clang compat package were installed together.
|
|
|
53102b |
install -p -m0644 -D %{SOURCE5} %{buildroot}%{_rpmmacrodir}/macros.%{name}
|
|
|
53102b |
sed -i -e "s|@@CLANG_MAJOR_VERSION@@|%{maj_ver}|" \
|
|
|
53102b |
-e "s|@@CLANG_MINOR_VERSION@@|%{min_ver}|" \
|
|
|
53102b |
-e "s|@@CLANG_PATCH_VERSION@@|%{patch_ver}|" \
|
|
|
53102b |
%{buildroot}%{_rpmmacrodir}/macros.%{name}
|
|
|
53102b |
|
|
|
7cde34 |
# install clang python bindings
|
|
|
7cde34 |
mkdir -p %{buildroot}%{python3_sitelib}/clang/
|
|
|
7cde34 |
install -p -m644 bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/
|
|
|
7cde34 |
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/clang
|
|
|
7cde34 |
|
|
|
53102b |
# install scanbuild-py to python sitelib.
|
|
|
53102b |
mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib}
|
|
|
53102b |
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/{libear,libscanbuild}
|
|
|
53102b |
|
|
|
803c1c |
# Fix permissions of scan-view scripts
|
|
|
803c1c |
chmod a+x %{buildroot}%{_datadir}/scan-view/{Reporter.py,startfile.py}
|
|
|
803c1c |
|
|
|
7cde34 |
# multilib fix
|
|
|
7cde34 |
%multilib_fix_c_header --file %{_includedir}/clang/Config/config.h
|
|
|
7cde34 |
|
|
|
7cde34 |
# Move emacs integration files to the correct directory
|
|
|
7cde34 |
mkdir -p %{buildroot}%{_emacs_sitestartdir}
|
|
|
7cde34 |
for f in clang-format.el clang-rename.el clang-include-fixer.el; do
|
|
|
7cde34 |
mv %{buildroot}{%{_datadir}/clang,%{_emacs_sitestartdir}}/$f
|
|
|
7cde34 |
done
|
|
|
7cde34 |
|
|
|
7cde34 |
# remove editor integrations (bbedit, sublime, emacs, vim)
|
|
|
7cde34 |
rm -vf %{buildroot}%{_datadir}/clang/clang-format-bbedit.applescript
|
|
|
7cde34 |
rm -vf %{buildroot}%{_datadir}/clang/clang-format-sublime.py*
|
|
|
7cde34 |
|
|
|
7cde34 |
# TODO: Package html docs
|
|
|
803c1c |
rm -Rvf %{buildroot}%{_docdir}/Clang/clang/html
|
|
|
b99d8d |
rm -Rvf %{buildroot}%{_datadir}/clang/clang-doc-default-stylesheet.css
|
|
|
b99d8d |
rm -Rvf %{buildroot}%{_datadir}/clang/index.js
|
|
|
7cde34 |
|
|
|
7cde34 |
# TODO: What are the Fedora guidelines for packaging bash autocomplete files?
|
|
|
7cde34 |
rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
|
|
|
7cde34 |
|
|
|
7cde34 |
# Create Manpage symlinks
|
|
|
7cde34 |
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++.1.gz
|
|
|
7cde34 |
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang-%{maj_ver}.1.gz
|
|
|
7cde34 |
ln -s clang.1.gz %{buildroot}%{_mandir}/man1/clang++-%{maj_ver}.1.gz
|
|
|
7cde34 |
|
|
|
7cde34 |
# Add clang++-{version} symlink
|
|
|
7cde34 |
ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
|
|
|
7cde34 |
|
|
|
7cde34 |
|
|
|
7cde34 |
# Fix permission
|
|
|
7cde34 |
chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1*
|
|
|
7cde34 |
|
|
|
41b1a8 |
# create a link to clang's resource directory that is "constant" across minor
|
|
|
41b1a8 |
# version bumps
|
|
|
41b1a8 |
# this is required for packages like ccls that hardcode the link to clang's
|
|
|
41b1a8 |
# resource directory to not require rebuilds on minor version bumps
|
|
|
41b1a8 |
# Fix for bugs like rhbz#1807574
|
|
|
41b1a8 |
pushd %{buildroot}%{_libdir}/clang/
|
|
|
41b1a8 |
ln -s %{version} %{maj_ver}
|
|
|
41b1a8 |
popd
|
|
|
41b1a8 |
|
|
|
53102b |
%endif
|
|
|
53102b |
|
|
|
b99d8d |
# Create sub-directories in the clang resource directory that will be
|
|
|
b99d8d |
# populated by other packages
|
|
|
53102b |
mkdir -p %{buildroot}%{pkg_libdir}/clang/%{version}/{include,lib,share}/
|
|
|
b99d8d |
|
|
|
7cde34 |
|
|
|
41b1a8 |
# Remove clang-tidy headers. We don't ship the libraries for these.
|
|
|
41b1a8 |
rm -Rvf %{buildroot}%{_includedir}/clang-tidy/
|
|
|
41b1a8 |
|
|
|
53102b |
%if %{without compat_build}
|
|
|
b99d8d |
# Add a symlink in /usr/bin to clang-format-diff
|
|
|
b99d8d |
ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff
|
|
|
53102b |
%endif
|
|
|
b99d8d |
|
|
|
7cde34 |
%check
|
|
|
53102b |
%if %{without compat_build}
|
|
|
53102b |
%if %{with check}
|
|
|
7cde34 |
# requires lit.py from LLVM utilities
|
|
|
b99d8d |
# FIXME: Fix failing ARM tests
|
|
|
7375a1 |
LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %{__ninja} %{_smp_mflags} check-all -C %{_vpath_builddir} || \
|
|
|
b99d8d |
%ifarch %{arm}
|
|
|
7cde34 |
:
|
|
|
7cde34 |
%else
|
|
|
b99d8d |
false
|
|
|
7cde34 |
%endif
|
|
|
803c1c |
%endif
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
7cde34 |
|
|
|
53102b |
%if %{without compat_build}
|
|
|
7cde34 |
%files
|
|
|
41b1a8 |
%license LICENSE.TXT
|
|
|
803c1c |
%{_bindir}/clang
|
|
|
803c1c |
%{_bindir}/clang++
|
|
|
803c1c |
%{_bindir}/clang-%{maj_ver}
|
|
|
803c1c |
%{_bindir}/clang++-%{maj_ver}
|
|
|
803c1c |
%{_bindir}/clang-cl
|
|
|
803c1c |
%{_bindir}/clang-cpp
|
|
|
7cde34 |
%{_mandir}/man1/clang.1.gz
|
|
|
7cde34 |
%{_mandir}/man1/clang++.1.gz
|
|
|
7cde34 |
%{_mandir}/man1/clang-%{maj_ver}.1.gz
|
|
|
7cde34 |
%{_mandir}/man1/clang++-%{maj_ver}.1.gz
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
7cde34 |
%files libs
|
|
|
53102b |
%if %{without compat_build}
|
|
|
7cde34 |
%{_libdir}/clang/
|
|
|
7cde34 |
%{_libdir}/*.so.*
|
|
|
7cde34 |
%else
|
|
|
7cde34 |
%{pkg_libdir}/*.so.*
|
|
|
7cde34 |
%{pkg_libdir}/clang/%{version}
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
7cde34 |
%files devel
|
|
|
53102b |
%if %{without compat_build}
|
|
|
7cde34 |
%{_libdir}/*.so
|
|
|
7cde34 |
%{_includedir}/clang/
|
|
|
7cde34 |
%{_includedir}/clang-c/
|
|
|
7cde34 |
%{_libdir}/cmake/*
|
|
|
7cde34 |
%dir %{_datadir}/clang/
|
|
|
53102b |
%{_rpmmacrodir}/macros.%{name}
|
|
|
7cde34 |
%else
|
|
|
7cde34 |
%{pkg_libdir}/*.so
|
|
|
7cde34 |
%{pkg_includedir}/clang/
|
|
|
7cde34 |
%{pkg_includedir}/clang-c/
|
|
|
7cde34 |
%{pkg_libdir}/cmake/
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
|
|
|
b99d8d |
%files resource-filesystem
|
|
|
b99d8d |
%dir %{pkg_libdir}/clang/%{version}/
|
|
|
b99d8d |
%dir %{pkg_libdir}/clang/%{version}/include/
|
|
|
b99d8d |
%dir %{pkg_libdir}/clang/%{version}/lib/
|
|
|
b99d8d |
%dir %{pkg_libdir}/clang/%{version}/share/
|
|
|
53102b |
%if %{without compat_build}
|
|
|
b99d8d |
%{pkg_libdir}/clang/%{maj_ver}
|
|
|
b99d8d |
%endif
|
|
|
b99d8d |
|
|
|
53102b |
%if %{without compat_build}
|
|
|
7cde34 |
%files analyzer
|
|
|
7cde34 |
%{_bindir}/scan-view
|
|
|
7cde34 |
%{_bindir}/scan-build
|
|
|
53102b |
%{_bindir}/analyze-build
|
|
|
53102b |
%{_bindir}/intercept-build
|
|
|
53102b |
%{_bindir}/scan-build-py
|
|
|
7cde34 |
%{_libexecdir}/ccc-analyzer
|
|
|
7cde34 |
%{_libexecdir}/c++-analyzer
|
|
|
53102b |
%{_libexecdir}/analyze-c++
|
|
|
53102b |
%{_libexecdir}/analyze-cc
|
|
|
53102b |
%{_libexecdir}/intercept-c++
|
|
|
53102b |
%{_libexecdir}/intercept-cc
|
|
|
7cde34 |
%{_datadir}/scan-view/
|
|
|
7cde34 |
%{_datadir}/scan-build/
|
|
|
7cde34 |
%{_mandir}/man1/scan-build.1.*
|
|
|
53102b |
%{python3_sitelib}/libear
|
|
|
53102b |
%{python3_sitelib}/libscanbuild
|
|
|
7cde34 |
|
|
|
803c1c |
|
|
|
7cde34 |
%files tools-extra
|
|
|
803c1c |
%{_bindir}/clang-apply-replacements
|
|
|
803c1c |
%{_bindir}/clang-change-namespace
|
|
|
803c1c |
%{_bindir}/clang-check
|
|
|
803c1c |
%{_bindir}/clang-doc
|
|
|
803c1c |
%{_bindir}/clang-extdef-mapping
|
|
|
803c1c |
%{_bindir}/clang-format
|
|
|
803c1c |
%{_bindir}/clang-include-fixer
|
|
|
803c1c |
%{_bindir}/clang-move
|
|
|
803c1c |
%{_bindir}/clang-offload-bundler
|
|
|
7375a1 |
%{_bindir}/clang-offload-packager
|
|
|
803c1c |
%{_bindir}/clang-offload-wrapper
|
|
|
803c1c |
%{_bindir}/clang-linker-wrapper
|
|
|
803c1c |
%{_bindir}/clang-nvlink-wrapper
|
|
|
7375a1 |
%{_bindir}/clang-pseudo
|
|
|
803c1c |
%{_bindir}/clang-query
|
|
|
803c1c |
%{_bindir}/clang-refactor
|
|
|
803c1c |
%{_bindir}/clang-rename
|
|
|
803c1c |
%{_bindir}/clang-reorder-fields
|
|
|
803c1c |
%{_bindir}/clang-repl
|
|
|
803c1c |
%{_bindir}/clang-scan-deps
|
|
|
803c1c |
%{_bindir}/clang-tidy
|
|
|
803c1c |
%{_bindir}/clangd
|
|
|
803c1c |
%{_bindir}/diagtool
|
|
|
803c1c |
%{_bindir}/hmaptool
|
|
|
803c1c |
%{_bindir}/pp-trace
|
|
|
7cde34 |
%{_bindir}/c-index-test
|
|
|
7cde34 |
%{_bindir}/find-all-symbols
|
|
|
7cde34 |
%{_bindir}/modularize
|
|
|
b99d8d |
%{_bindir}/clang-format-diff
|
|
|
7cde34 |
%{_mandir}/man1/diagtool.1.gz
|
|
|
7cde34 |
%{_emacs_sitestartdir}/clang-format.el
|
|
|
7cde34 |
%{_emacs_sitestartdir}/clang-rename.el
|
|
|
7cde34 |
%{_emacs_sitestartdir}/clang-include-fixer.el
|
|
|
7cde34 |
%{_datadir}/clang/clang-format.py*
|
|
|
7cde34 |
%{_datadir}/clang/clang-format-diff.py*
|
|
|
7cde34 |
%{_datadir}/clang/clang-include-fixer.py*
|
|
|
7cde34 |
%{_datadir}/clang/clang-tidy-diff.py*
|
|
|
53102b |
%{_bindir}/run-clang-tidy
|
|
|
7cde34 |
%{_datadir}/clang/run-find-all-symbols.py*
|
|
|
7cde34 |
%{_datadir}/clang/clang-rename.py*
|
|
|
7cde34 |
|
|
|
7cde34 |
%files -n git-clang-format
|
|
|
7cde34 |
%{_bindir}/git-clang-format
|
|
|
7cde34 |
|
|
|
7cde34 |
%files -n python3-clang
|
|
|
7cde34 |
%{python3_sitelib}/clang/
|
|
|
7cde34 |
|
|
|
41b1a8 |
|
|
|
7cde34 |
%endif
|
|
|
7cde34 |
%changelog
|
|
|
7375a1 |
* Tue Sep 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.0-1
|
|
|
7375a1 |
- Update to LLVM 15.0.0
|
|
|
7375a1 |
|
|
|
fa0eb4 |
* Tue Jun 28 2022 Tom Stellard <tstellar@redhat.com> - 14.0.6-1
|
|
|
fa0eb4 |
- 14.0.6 Release
|
|
|
fa0eb4 |
|
|
|
4e0495 |
* Wed Jun 01 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.0-2
|
|
|
4e0495 |
- Increate gcc-toolset dependency to 12
|
|
|
4e0495 |
- Set GCC_INSTALL_PREFIX variable
|
|
|
4e0495 |
|
|
|
803c1c |
* Thu Apr 07 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.0-1
|
|
|
803c1c |
- Update to 14.0.0
|
|
|
803c1c |
|
|
|
33d02d |
* Thu Feb 03 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-1
|
|
|
33d02d |
- 13.0.1 Release
|
|
|
33d02d |
|
|
|
fc83c9 |
* Fri Jan 21 2022 Serge Guelton - 13.0.0-3
|
|
|
fc83c9 |
- Backport bidi patches
|
|
|
fc83c9 |
|
|
|
53102b |
* Fri Oct 22 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-2
|
|
|
53102b |
- Don't emit unwind tables for bpf
|
|
|
c63a42 |
|
|
|
53102b |
* Fri Oct 15 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
|
|
|
53102b |
- 13.0.0 Release
|
|
|
d240d2 |
|
|
|
58140c |
* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1
|
|
|
58140c |
- 12.0.1 release
|
|
|
58140c |
|
|
|
b99d8d |
* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1
|
|
|
b99d8d |
- 12.0.0 release
|
|
|
b99d8d |
|
|
|
78ae70 |
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1
|
|
|
78ae70 |
- 11.0.0 final release
|
|
|
78ae70 |
|
|
|
41b1a8 |
* Thu Sep 17 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
|
|
|
41b1a8 |
- 11.0.0-rc2 Release
|
|
|
41b1a8 |
|
|
|
fa4e02 |
* Fri Jul 24 2020 sguelton@redhat.com - 10.0.1-1
|
|
|
fa4e02 |
- 10.0.1 release
|
|
|
fa4e02 |
|
|
|
7cde34 |
* Thu Apr 9 2020 sguelton@redhat.com - 10.0.0-1
|
|
|
7cde34 |
- 10.0.0 final
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Jan 10 2020 Tom Stellard <tstellar@redhat.com> - 9.0.1-2
|
|
|
7cde34 |
- Fix crash with kernel bpf self-tests
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Dec 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
|
|
|
7cde34 |
- 9.0.1 Release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Nov 15 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-5
|
|
|
7cde34 |
- Fix typo from previous patch: move clang-libs dep to correct sub-package
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Nov 14 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-4
|
|
|
7cde34 |
- Add explicit requires for clang-libs to fix rpmdiff errors
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Oct 02 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-3
|
|
|
7cde34 |
- Limit build to 8 threads to avoid OOM on x86_64
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Oct 02 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-2
|
|
|
7cde34 |
- Disable CLANG_LINK_CLANG_DYLIB
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Sep 27 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
|
|
|
7cde34 |
- 9.0.0 Release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1
|
|
|
7cde34 |
- 8.0.1 Release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2
|
|
|
7cde34 |
- 8.0.1rc2 Release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Apr 11 2019 sguelton@redhat.com - 8.0.0-1
|
|
|
7cde34 |
- 8.0.0 Release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Dec 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-1
|
|
|
7cde34 |
- 7.0.1-1 Release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon Dec 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.1.rc3
|
|
|
7cde34 |
- 7.0.1-rc3 Release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon Nov 05 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-12
|
|
|
7cde34 |
- User helper macro to fixup config.h for multilib
|
|
|
7cde34 |
|
|
|
7cde34 |
* Sat Oct 27 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-11
|
|
|
7cde34 |
- Enable make check
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon Oct 15 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-10
|
|
|
7cde34 |
- Remove Provides: llvm-toolset-6.0-clang-libs
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Oct 12 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-9
|
|
|
7cde34 |
- Add Provides: llvm-toolset-6.0-clang-libs
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue Oct 02 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-8
|
|
|
7cde34 |
- Don't use python2 for the build
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon Oct 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-7
|
|
|
7cde34 |
- Drop scl macros
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue Sep 25 2018 Tomas Orsava <torsava@redhat.com> - 6.0.1-6
|
|
|
7cde34 |
- Change Requires from python3 to platform-python
|
|
|
7cde34 |
- The python3 package was renamed to platform-python
|
|
|
7cde34 |
- Related: rhbz#1619153
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Sep 14 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-5
|
|
|
7cde34 |
- Use python3 for git-clang-format
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Sep 13 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-4
|
|
|
7cde34 |
- Fix python dependencies
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue Aug 07 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
|
|
|
7cde34 |
- Install ld.so.conf file in the root filesystem
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Aug 02 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-2
|
|
|
7cde34 |
- Remove annobin work-around
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Jul 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
|
|
|
7cde34 |
- 6.0.1 Release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Apr 11 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-7
|
|
|
7cde34 |
- Add conditionals to enable building only the clang-libs package
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Apr 06 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-6
|
|
|
7cde34 |
- Use cmake from base RHEL
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon Mar 19 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-5
|
|
|
7cde34 |
- Backport r310435 from clang trunk. rhbz#1558223
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon Mar 19 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-4
|
|
|
7cde34 |
- Use system gcc instead of dts.
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue Feb 06 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-3
|
|
|
7cde34 |
- Backport retpoline support
|
|
|
7cde34 |
|
|
|
7cde34 |
* Sat Jan 20 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-2
|
|
|
7cde34 |
- Limit number of build threads on ppc64le to avoid OOM errors
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue Jan 09 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
|
|
|
7cde34 |
- 5.0.1 Release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Jun 21 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
|
|
|
7cde34 |
- 4.0.1 Release.
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Jun 21 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-15
|
|
|
7cde34 |
- Fix Requires for clang-tools-extra
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Jun 21 2017 Tom Stellard
|
|
|
7cde34 |
- Fix Requires for clang-tools-extra
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue Jun 20 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-13
|
|
|
7cde34 |
- Drop libomp dependency on s390x
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Jun 15 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-12
|
|
|
7cde34 |
- Use libstdc++ from devtoolset-7
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-11
|
|
|
7cde34 |
- Fix libomp requires
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-10
|
|
|
7cde34 |
- Build for llvm-toolset-7 rename
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue May 30 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-9
|
|
|
7cde34 |
- Use ld from devtoolset in clang toolchain
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon May 29 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-8
|
|
|
7cde34 |
- Add dependency on libopenmp
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu May 25 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-7
|
|
|
7cde34 |
- Fix check for gcc install
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed May 24 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-6
|
|
|
7cde34 |
- Add devtoolset-6 dependency for newer libstdc++
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri May 12 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-5
|
|
|
7cde34 |
- Add dependency on compiler-rt
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue May 02 2017 Tom Stellard <tstellar@redhat.com>
|
|
|
7cde34 |
- Fix dependencies with scl
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon May 01 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-4
|
|
|
7cde34 |
- Build with llvm-toolset-4
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon Mar 27 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
|
|
|
7cde34 |
- Enable eh/rtti, which are required by lldb.
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Mar 24 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
|
|
|
7cde34 |
- Fix clang-tools-extra build
|
|
|
7cde34 |
- Fix install
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Mar 23 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
|
|
|
7cde34 |
- clang 4.0.0 final release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon Mar 20 2017 David Goerger <david.goerger@yale.edu> - 3.9.1-3
|
|
|
7cde34 |
- add clang-tools-extra rhbz#1328091
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Mar 16 2017 Tom Stellard <tstellar@redhat.com> - 3.9.1-2
|
|
|
7cde34 |
- Enable build-id by default rhbz#1432403
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Mar 02 2017 Dave Airlie <airlied@redhat.com> - 3.9.1-1
|
|
|
7cde34 |
- clang 3.9.1 final release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-4
|
|
|
7cde34 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
7cde34 |
|
|
|
7cde34 |
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3.9.0-3
|
|
|
7cde34 |
- Add Requires: compiler-rt to clang-libs.
|
|
|
7cde34 |
- Without this, compiling with certain CFLAGS breaks.
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue Nov 1 2016 Peter Robinson <pbrobinson@fedoraproject.org> 3.9.0-2
|
|
|
7cde34 |
- Rebuild for new arches
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Oct 14 2016 Dave Airlie <airlied@redhat.com> - 3.9.0-1
|
|
|
7cde34 |
- clang 3.9.0 final release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Jul 01 2016 Stephan Bergmann <sbergman@redhat.com> - 3.8.0-2
|
|
|
7cde34 |
- Resolves: rhbz#1282645 add GCC abi_tag support
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Mar 10 2016 Dave Airlie <airlied@redhat.com> 3.8.0-1
|
|
|
7cde34 |
- clang 3.8.0 final release
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Mar 03 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.4
|
|
|
7cde34 |
- clang 3.8.0rc3
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Feb 24 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.3
|
|
|
7cde34 |
- package all libs into clang-libs.
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Feb 24 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.2
|
|
|
7cde34 |
- enable dynamic linking of clang against llvm
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Feb 18 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.1
|
|
|
7cde34 |
- clang 3.8.0rc2
|
|
|
7cde34 |
|
|
|
7cde34 |
* Fri Feb 12 2016 Dave Airlie <airlied@redhat.com> 3.7.1-4
|
|
|
7cde34 |
- rebuild against latest llvm packages
|
|
|
7cde34 |
- add BuildRequires llvm-static
|
|
|
7cde34 |
|
|
|
7cde34 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-3
|
|
|
7cde34 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Jan 28 2016 Dave Airlie <airlied@redhat.com> 3.7.1-2
|
|
|
7cde34 |
- just accept clang includes moving to /usr/lib64, upstream don't let much else happen
|
|
|
7cde34 |
|
|
|
7cde34 |
* Thu Jan 28 2016 Dave Airlie <airlied@redhat.com> 3.7.1-1
|
|
|
7cde34 |
- initial build in Fedora.
|
|
|
7cde34 |
|
|
|
7cde34 |
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
|
|
|
7cde34 |
- initial version using cmake build system
|