Skip to content

Commit

Permalink
Switch compilers to CLang.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-awareit committed Sep 14, 2023
1 parent 520fe0d commit 45b03e0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ makedepends=(
avahi
boost
bzip2
chromaprint
# chromaprint
curl
dbus
expat
Expand Down Expand Up @@ -88,7 +88,6 @@ sha512sums=(
'6e467481406279767b709ec6d5c06dbd825c0de09045c52ffa2d21d0604dcfe19b7a92bf42bed25163d66a3a0d1dbde6185a648b433eaf5eac56be90491e2e18'
'db473db27cd68994c3ee26e78e0fb34d13126301d8861563dcc12a22d62ecb14c4ffb1e0798c6aaccdff34e73bae3fbeeff7b42606c901a2d35e278865cdf35d'
'c1782b82f9db1d30aece43a07230c5d57370f2494a16e108af03815d83968805472f10f53ea5495cf0e08ff8f245430c3c3bc44025af43aaf9ecd12fcd6afc6c')
# 'b9b546788675238a126d1f8b0331911d59bef10a196989656ab3356d79a5bf6612a30a62a73cdc6f0f6d30757da9acb9dfd5e15a43cd1f8b859be9ec18536cd3')
backup=('etc/mpd.conf')

prepare() {
Expand All @@ -98,9 +97,14 @@ prepare() {
}

build() {
# Using CLang compiler
CC=clang
CXX=clang++
mesonargs="-Dc_std=c11 -Dcpp_std=c++2a"

cd "${srcdir}/mpd/build"
_opts=('-Ddocumentation=enabled'
'-Dchromaprint=disabled' # appears not to be used for anything
# '-Dchromaprint=disabled' # appears not to be used for anything
'-Dsidplay=disabled' # unclear why but disabled in the past
'-Dadplug=disabled' # not in an official repo
'-Dsndio=disabled' # interferes with detection of alsa devices
Expand All @@ -117,7 +121,6 @@ build() {
'-Dsacdiso=true'
'-Ddvdaiso=true'
)
# env CC=clang CXX=clang++ arch-meson .. ${_opts[@]}
arch-meson .. ${_opts[@]}
ninja
}
Expand Down

0 comments on commit 45b03e0

Please sign in to comment.