1 From 71e2d33146dd4fd017065be1e6445d4bad8c3671 Mon Sep 17 00:00:00 2001
2 From: Keeyou <keeyou-cn@outlook.com>
3 Date: Sun, 7 Apr 2024 17:09:55 +0800
4 Subject: [PATCH] loongarch64: blacklist gtk4
7 CMakeLists.txt | 11 ++++++++++-
8 1 file changed, 10 insertions(+), 1 deletion(-)
10 diff --git a/CMakeLists.txt b/CMakeLists.txt
11 index 68e536b0..a4e4a58e 100644
14 @@ -2055,8 +2055,17 @@ elseif (GUI)
18 + # fix up for loongarch gtk support
19 + # see https://github.com/microcai/gentoo-zh/pull/4486
20 + if (CMAKE_SYSTEM_PROCESSOR STREQUAL "loongarch64")
21 + message(STATUS "Blacklist gtk4 for loongarch64 target")
22 + set(BLACKLIST_GTK4 ON)
24 + set(BLACKLIST_GTK4 OFF)
27 pkg_check_modules(GTK4 gtk4)
29 + if (GTK4_FOUND AND NOT BLACKLIST_GTK4)
30 set(GUI_FLAVOUR "gtk4")
31 set(GUI_OTHER_FLAGS -Wno-deprecated-declarations)