Build with GCC 12 on el8
This commit is contained in:
parent
a4d3583a45
commit
2a33cd4e78
|
@ -25,7 +25,7 @@ ExcludeArch: %{mips}
|
|||
|
||||
BuildRequires: cmake
|
||||
%if 0%{?el8}
|
||||
BuildRequires: gcc-toolset-10-toolchain
|
||||
BuildRequires: gcc-toolset-12
|
||||
%else
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++ >= 10
|
||||
|
@ -71,7 +71,7 @@ rm -r third-party/{mimalloc,xxhash,zlib,zstd}
|
|||
|
||||
%build
|
||||
%if 0%{?el8}
|
||||
. /opt/rh/gcc-toolset-10/enable
|
||||
. /opt/rh/gcc-toolset-12/enable
|
||||
%endif
|
||||
%cmake -DMOLD_USE_SYSTEM_MIMALLOC=ON
|
||||
%cmake_build
|
||||
|
@ -91,7 +91,7 @@ fi
|
|||
|
||||
%check
|
||||
%if 0%{?el8}
|
||||
. /opt/rh/gcc-toolset-10/enable
|
||||
. /opt/rh/gcc-toolset-12/enable
|
||||
%endif
|
||||
%ctest
|
||||
|
||||
|
@ -111,6 +111,7 @@ fi
|
|||
- Bump version to 1.7.0
|
||||
- Drop upstreamed patches
|
||||
- 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
|
||||
- Bump version to 1.6.0
|
||||
|
|
Loading…
Reference in New Issue