why nobody ever told me the makefile doesnt work outside x86 xD

This commit is contained in:
Concedo 2023-04-05 17:15:42 +08:00
parent 1490cdd71d
commit 5c1920df43

View file

@ -36,7 +36,7 @@ CXXFLAGS = -I. -I./examples -Ofast -DNDEBUG -std=c++11 -fPIC
LDFLAGS = LDFLAGS =
#lets try enabling everything #lets try enabling everything
CFLAGS += -pthread -mf16c -mfma -mavx2 -mavx -msse3 CFLAGS += -pthread
CXXFLAGS += -pthread CXXFLAGS += -pthread
# OS specific # OS specific
@ -71,7 +71,7 @@ endif
# feel free to update the Makefile for your architecture and send a pull request or issue # 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_M),$(filter $(UNAME_M),x86_64 i686))
# Use all CPU extensions that are available: # Use all CPU extensions that are available:
CFLAGS += CFLAGS += -mf16c -mfma -mavx2 -mavx -msse3
endif endif
ifneq ($(filter ppc64%,$(UNAME_M)),) ifneq ($(filter ppc64%,$(UNAME_M)),)
POWER9_M := $(shell grep "POWER9" /proc/cpuinfo) POWER9_M := $(shell grep "POWER9" /proc/cpuinfo)