Skip to content

Commit

Permalink
makefile: Use do not use -mssse3 instructions on arm (#940) (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
veaceslavdoina authored Nov 9, 2024
1 parent a6f0311 commit d7ae8b7
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,28 @@ DOCKER_IMAGE_NIM_PARAMS ?= -d:chronicles_colors:none -d:insecure

LINK_PCRE := 0

CXXFLAGS ?= -std=c++17 -mssse3
ifeq ($(OS),Windows_NT)
ifeq ($(PROCESSOR_ARCHITECTURE), AMD64)
ARCH = x86_64
endif
ifeq ($(PROCESSOR_ARCHITECTURE), ARM64)
ARCH = arm64
endif
else
UNAME_P := $(shell uname -p)
ifneq ($(filter $(UNAME_P), i686 i386 x86_64),)
ARCH = x86_64
endif
ifneq ($(filter $(UNAME_P), aarch64 arm),)
ARCH = arm64
endif
endif

ifeq ($(ARCH), x86_64)
CXXFLAGS ?= -std=c++17 -mssse3
else
CXXFLAGS ?= -std=c++17
endif
export CXXFLAGS

# we don't want an error here, so we can handle things later, in the ".DEFAULT" target
Expand Down

0 comments on commit d7ae8b7

Please sign in to comment.