Skip to content

Commit

Permalink
build(archlinux): bump gcc from 12 to 13 (LizardByte#2519)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored and KuleRucket committed Jun 6, 2024
1 parent 01321ad commit 83f8eae
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packaging/linux/Arch/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ url=@PROJECT_HOMEPAGE_URL@
license=('GPL-3.0-only')
install=sunshine.install

_gcc_version=13

depends=('avahi'
'boost-libs'
'curl'
Expand Down Expand Up @@ -37,7 +39,7 @@ checkdepends=('doxygen'
'graphviz')
makedepends=('boost'
'cmake'
'gcc12'
"gcc${_gcc_version}"
'git'
'make'
'nodejs'
Expand All @@ -62,8 +64,8 @@ build() {
export BUILD_VERSION="@GITHUB_BUILD_VERSION@"
export COMMIT="@GITHUB_COMMIT@"

export CC=gcc-12
export CXX=g++-12
export CC="gcc-${_gcc_version}"
export CXX="g++-${_gcc_version}"

export CFLAGS="${CFLAGS/-Werror=format-security/}"
export CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
Expand All @@ -81,11 +83,11 @@ build() {
}

check() {
export CC=gcc-12
export CXX=g++-12
export CC="gcc-${_gcc_version}"
export CXX="g++-${_gcc_version}"

cd "${srcdir}/build/tests"
./test_sunshine --gtest_color=yes
cd "${srcdir}/build/tests"
./test_sunshine --gtest_color=yes
}

package() {
Expand Down

0 comments on commit 83f8eae

Please sign in to comment.