From 3bd3bb531fcbd380296d7833da347280de647459 Mon Sep 17 00:00:00 2001 From: Horror Proton <107091537+horror-proton@users.noreply.github.com> Date: Fri, 14 Jun 2024 22:14:30 +0800 Subject: [PATCH] Update maa WITH_CUDA --- maa-assistant-arknights-git/PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maa-assistant-arknights-git/PKGBUILD b/maa-assistant-arknights-git/PKGBUILD index c7a1403..a7d734d 100644 --- a/maa-assistant-arknights-git/PKGBUILD +++ b/maa-assistant-arknights-git/PKGBUILD @@ -17,7 +17,7 @@ source=("MaaAssistantArknights::git+$url.git" md5sums=('SKIP' 'SKIP') -if ((WITH_GPU)); then +if ((WITH_CUDA)); then depends+=( cuda ) fi @@ -43,8 +43,8 @@ build() { -Dfastdeploy_BINARY_DIR="$srcdir"/build-FastDeploy ) - if ((WITH_GPU)); then - _cmake_flags+=( -DWITH_GPU=ON -DCUDA_DIRECTORY=/opt/cuda -DCUDA_ARCH_NAME=Auto ) + if ((WITH_CUDA)); then + _cmake_flags+=( -DWITH_CUDA=ON -DCUDA_DIRECTORY=/opt/cuda -DCUDA_ARCH_NAME=Auto ) fi CXXFLAGS+=" -fmacro-prefix-map=$srcdir=${DBGSRCDIR:-/usr/src/debug}/${pkgbase:?}"