diff options
author | Rasmus Karlsson | 2023-09-16 09:25:20 +0200 |
---|---|---|
committer | Rasmus Karlsson | 2023-09-16 09:25:20 +0200 |
commit | 0364f416873502bda4a3a1ea8003db87729e6800 (patch) | |
tree | e6f15a74ffb9619923891e2358b7266db2a663fe /PKGBUILD | |
parent | a87578d9475c53f85280936aace93cfaa99408ca (diff) | |
download | aur-0364f416873502bda4a3a1ea8003db87729e6800.tar.gz |
Forward `-flto` flag to Chatterino
Thanks @sunred
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,7 +1,7 @@ # Maintainer: Ckat <ckat@teknik.io> pkgname=chatterino2-git _pkgname=chatterino2 -pkgver=v2.4.5.r0.g05a72d335 +pkgver=v2.4.5.r24.g2d5f07830 pkgrel=1 pkgdesc='Second installment of the Twitch chat client series "Chatterino", dev/git version' arch=('any') @@ -67,10 +67,15 @@ build() { cd "$srcdir/chatterino2" mkdir -p build cd build + declare -a flags + if [[ $CXXFLAGS == *"-flto"* ]]; then + flags+=("-DCHATTERINO_LTO=ON") + fi cmake \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_SYSTEM_QTKEYCHAIN=ON \ -DUSE_PRECOMPILED_HEADERS=OFF \ + "${flags[@]}" \ .. cmake --build . } |