From ed5e7a3062097e4160bbaa6005df068bd6433688 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 24 Aug 2025 01:34:54 +0800 Subject: [PATCH] fix for some old android devices --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fa18e1861..c1eae2d0f 100644 --- a/Makefile +++ b/Makefile @@ -348,9 +348,14 @@ ifneq ($(filter armv7%,$(UNAME_M)),) endif ifneq ($(filter armv8%,$(UNAME_M)),) # Raspberry Pi 3, 4, Zero 2 (32-bit) - CFLAGS += -mfp16-format=ieee -mno-unaligned-access - CXXFLAGS += -mfp16-format=ieee -mno-unaligned-access + CFLAGS += -mno-unaligned-access + CXXFLAGS += -mno-unaligned-access +ifneq ($(findstring clang, $(CCV)), ) #cl doesnt support this and sometimes androids end up here + CFLAGS += -mfp16-format=ieee + CXXFLAGS += -mfp16-format=ieee endif +endif + ifneq ($(filter ppc64%,$(UNAME_M)),) POWER9_M := $(shell grep "POWER9" /proc/cpuinfo) ifneq (,$(findstring POWER9,$(POWER9_M)))