Skip to content

Commit

Permalink
pkg: Switch back to building with GCC on Fedora and Arch
Browse files Browse the repository at this point in the history
After the Eigen migration, GCC seems to produce the faster code again,
but both compilers are very close.

Debian will keep using clang for now, because in bullseye the packaged
clang is one year newer than the packaged GCC.
  • Loading branch information
StollD committed Jun 20, 2023
1 parent 1f0c837 commit 5a5ab45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ depends=(
)
makedepends=(
'meson'
'clang'
'gcc'
'cmake'
'microsoft-gsl'
'systemd'
Expand All @@ -26,10 +26,6 @@ makedepends=(
build() {
cd $startdir

# Build with clang since it produces faster binaries
export CC="clang"
export CXX="clang++"

export CFLAGS="$(echo "$CFLAGS" | sed 's|-O2||g' | sed 's|-mtune=generic||g' | sed 's|-march=x86_64||g')"
export CXXFLAGS="$(echo "$CXXFLAGS" | sed 's|-O2||g' | sed 's|-mtune=generic||g' | sed 's|-march=x86_64||g')"

Expand Down
2 changes: 1 addition & 1 deletion iptsd.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global debug_package %{nil}

# Build with clang since it produces faster binaries
%global toolchain clang
%global toolchain gcc

Name: iptsd
Version: 1.2.1
Expand Down

0 comments on commit 5a5ab45

Please sign in to comment.