Skip to content

Commit

Permalink
better makefile defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrySievert committed Feb 2, 2024
1 parent 1f52833 commit 514d978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ OBJS = $(subst .cpp,.o, $(SRCS))

MODULE_big = stringtheory

PG_CPPFLAGS = -O3 -std=c++17 -I src/sse
PG_CXXFLAGS = -O3 -std=c++17 -I src/sse

UNAME_S := $(shell uname -m)
ifeq ($(UNAME_S),arm64)
PG_CPPFLAGS += -stdlib=libc++ -DHAVE_NEON_INSTRUCTIONS=1
PG_CXXFLAGS += -stdlib=libc++ -DHAVE_NEON_INSTRUCTIONS=1
endif
ifeq ($(UNAME_S),aarch64)
PG_CPPFLAGS += -DHAVE_NEON_INSTRUCTIONS=1
endif
ifeq ($(UNAME_S),x86_64)
SHLIB_LINK += -lrt -std=c++17 -msse4.2
PG_CPPFLAGS += -msse4.2
PG_CXXFLAGS += -msse4.2
endif

EXTENSION = stringtheory
Expand Down

0 comments on commit 514d978

Please sign in to comment.