mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-06-01 14:29:33 +00:00
fix for some old android devices
This commit is contained in:
parent
90a6cb5b6c
commit
ed5e7a3062
1 changed files with 7 additions and 2 deletions
9
Makefile
9
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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue