From 26e0ff8a140763181f99683f2b9281d82792319f Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Fri, 10 May 2024 08:33:54 -0400 Subject: [PATCH] build(archlinux): bump gcc from 12 to 13 (#2519) --- packaging/linux/Arch/PKGBUILD | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packaging/linux/Arch/PKGBUILD b/packaging/linux/Arch/PKGBUILD index 6fde7fe5a90..3c02d95355a 100644 --- a/packaging/linux/Arch/PKGBUILD +++ b/packaging/linux/Arch/PKGBUILD @@ -10,6 +10,8 @@ url=@PROJECT_HOMEPAGE_URL@ license=('GPL-3.0-only') install=sunshine.install +_gcc_version=13 + depends=('avahi' 'boost-libs' 'curl' @@ -37,7 +39,7 @@ checkdepends=('doxygen' 'graphviz') makedepends=('boost' 'cmake' - 'gcc12' + "gcc${_gcc_version}" 'git' 'make' 'nodejs' @@ -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/}" @@ -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() {