Skip to content

Commit

Permalink
fix macos and arm
Browse files Browse the repository at this point in the history
  • Loading branch information
hasindu2008 committed Dec 24, 2023
1 parent 9ebde8f commit a90d45c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.exe
*.o
*.so
*.a

# Packages #
############
Expand Down
7 changes: 7 additions & 0 deletions thirdparty/streamvbyte16/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@ OBJ = streamvbyte16.o
STATICLIB = libstreamvbyte16.a
CFLAGS += -Wall -O3 -std=c99 -fpic -g

PROC_AUTO:=$(shell uname -m)
PROCESSOR ?= $(PROC_AUTO)

ifeq ($(no_simd),1)
else
ifeq ($(PROCESSOR), aarch64)
CFLAGS += -DVBZ_ENABLE_SIMD
else ifeq ($(PROCESSOR), x86_64)
CFLAGS += -DVBZ_ENABLE_SIMD -msse4.1
endif
endif

ifeq ($(zstd),1)
CFLAGS += -DVBZ_USE_ZSTD
Expand Down
Binary file removed thirdparty/streamvbyte16/libstreamvbyte16.a
Binary file not shown.

0 comments on commit a90d45c

Please sign in to comment.