From 83529359566ae683daaeebf0e6d4a950c6f86f10 Mon Sep 17 00:00:00 2001 From: Craig Carnell <1188869+cscd98@users.noreply.github.com> Date: Fri, 29 May 2026 20:38:04 +0100 Subject: [PATCH] webOS: fix aarch64 compile --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c32e17af1..9736b0347b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,10 +226,12 @@ if(USE_SYSTEM_RAPIDJSON) endif() if(WEBOS) - set(ARMV7 ON) set(USING_X11_VULKAN OFF) set(USING_GLES2 ON) set(USE_SYSTEM_ZSTD OFF) + if(CMAKE_CXX_COMPILER MATCHES "arm") + set(ARMV7 ON) + endif() endif() if(UNIX AND NOT (APPLE OR ANDROID) AND VULKAN) @@ -1039,7 +1041,7 @@ if(USE_FFMPEG) set(PLATFORM_ARCH "Windows/x86") endif() endif() - if(WEBOS) + if(WEBOS AND ARMV7) set(PLATFORM_ARCH "linux/webos") endif() if(PLATFORM_ARCH)