Skip to content

Commit

Permalink
enable runtime detection of vector extension on x86/64 target
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyan4973 committed Dec 26, 2024
1 parent 6fe4f19 commit 877d9e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ else
EXT =
endif

# automatically enable runtime vector dispatch on x86/64 targets
detect_x86_arch = $(shell $(CC) -dumpmachine | grep -E 'i[3-6]86|x86_64')
ifneq ($(strip $(call detect_x86_arch)),)
#note: can be overridden at compile time, by setting DISPATCH=0
DISPATCH ?= 1
endif

ifeq ($(NODE_JS),1)
# Link in unrestricted filesystem support
LDFLAGS += -sNODERAWFS
Expand Down

0 comments on commit 877d9e5

Please sign in to comment.