From 6779b9eb32af7001d884d62669c8cade26d0b4cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20=E2=80=9CFreso=E2=80=9D=20S=2E=20Olesen?= Date: Sat, 17 Feb 2024 20:48:55 +0100 Subject: [PATCH] Add additional optimisation for x86_64 CARCHs --- PKGBUILD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index 633bb14..2b7028c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -63,6 +63,8 @@ build(){ _gccarch='-m64' if [ "${CARCH}" == "aarch64" ]; then _gccarch='-march=armv8-a+crypto' + elif [[ "${CARCH}" =~ ^x86_64(|_v[0-9]+)$ ]]; then + _gccarch="-march=${CARCH//_/-}" fi # for attach debugger