Skip to content

Commit

Permalink
mesa; Restore optimization lost in 21ac180
Browse files Browse the repository at this point in the history
  • Loading branch information
pal1000 committed Nov 18, 2024
1 parent 9632189 commit 7f94085
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions mingw-w64-mesa/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=mesa
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=24.2.7
pkgrel=1
pkgrel=2
pkgdesc="Open-source implementation of the OpenGL, Vulkan and OpenCL specifications (mingw-w64)"
url="https://www.mesa3d.org/"
msys2_references=(
Expand Down Expand Up @@ -109,11 +109,17 @@ build() {
-Dvulkan-drivers=swrast,amd,microsoft-experimental
)

if [[ "${CARCH}" == "aarch64" ]]; then
_cc_march=armv8-a
else
_cc_march=core2
fi

MSYS2_ARG_CONV_EXCL="--prefix=" \
PROCESSOR_ARCHITECTURE="${CARCH}" \
${MINGW_PREFIX}/bin/meson setup \
-Dc_args="${CFLAGS}" \
-Dcpp_args="${CXXFLAGS}" \
-Dc_args="${CFLAGS} -march=${_cc_march}" \
-Dcpp_args="${CXXFLAGS} -march=${_cc_march}" \
"${_meson_options[@]}" \
"build-${MSYSTEM}" \
"${_realname}-${pkgver}"
Expand Down

0 comments on commit 7f94085

Please sign in to comment.