Build with GCC 12 on el8

This commit is contained in:
Christoph Erhardt 2022-11-18 08:03:28 +01:00
parent a4d3583a45
commit 2a33cd4e78
1 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ ExcludeArch: %{mips}
BuildRequires: cmake BuildRequires: cmake
%if 0%{?el8} %if 0%{?el8}
BuildRequires: gcc-toolset-10-toolchain BuildRequires: gcc-toolset-12
%else %else
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ >= 10 BuildRequires: gcc-c++ >= 10
@ -71,7 +71,7 @@ rm -r third-party/{mimalloc,xxhash,zlib,zstd}
%build %build
%if 0%{?el8} %if 0%{?el8}
. /opt/rh/gcc-toolset-10/enable . /opt/rh/gcc-toolset-12/enable
%endif %endif
%cmake -DMOLD_USE_SYSTEM_MIMALLOC=ON %cmake -DMOLD_USE_SYSTEM_MIMALLOC=ON
%cmake_build %cmake_build
@ -91,7 +91,7 @@ fi
%check %check
%if 0%{?el8} %if 0%{?el8}
. /opt/rh/gcc-toolset-10/enable . /opt/rh/gcc-toolset-12/enable
%endif %endif
%ctest %ctest
@ -111,6 +111,7 @@ fi
- Bump version to 1.7.0 - Bump version to 1.7.0
- Drop upstreamed patches - Drop upstreamed patches
- Move from `ExclusiveArch` to `ExcludeArch` as only MIPS remains unsupported - Move from `ExclusiveArch` to `ExcludeArch` as only MIPS remains unsupported
- Build with GCC 12 on el8
* Sat Oct 22 2022 Christoph Erhardt <fedora@sicherha.de> - 1.6.0-1 * Sat Oct 22 2022 Christoph Erhardt <fedora@sicherha.de> - 1.6.0-1
- Bump version to 1.6.0 - Bump version to 1.6.0