diff options
author | david raistrick <keen99@users.noreply.github.com> | 2023-03-30 13:34:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 20:34:45 +0300 |
commit | 1f0414feecc336482163af6c1e5650f9373ed8c9 (patch) | |
tree | d5307cae5251bf4edfc32b0db6a869609191cffc /Makefile | |
parent | 77efdf5a501b1140801da5cd8751e9f9b259ec32 (diff) |
make : fix darwin f16c flags check (#615)
...there was no check. ported upstream from https://github.com/zanussbaum/gpt4all.cpp/pull/2 (I dont see any clean path for upstream patches)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -71,7 +71,10 @@ endif # feel free to update the Makefile for your architecture and send a pull request or issue ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686)) ifeq ($(UNAME_S),Darwin) - CFLAGS += -mf16c + F16C_M := $(shell sysctl machdep.cpu.features) + ifneq (,$(findstring F16C,$(F16C_M))) + CFLAGS += -mf16c + endif AVX1_M := $(shell sysctl machdep.cpu.features) ifneq (,$(findstring FMA,$(AVX1_M))) CFLAGS += -mfma |