Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(archlinux): bump gcc from 12 to 13 #2519

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading