Not use -msse2 on power or arm arch. close #2446 (#2475)

This commit is contained in:
Qiang Kou (KK) 2017-07-06 17:06:55 -07:00 committed by Yuan (Terry) Tang
parent 9091493250
commit e7530bdffc

View File

@ -39,6 +39,16 @@ USE_S3 = 0
# whether use Azure blob support during compile # whether use Azure blob support during compile
USE_AZURE = 0 USE_AZURE = 0
#----------------------------
# Settings for power and arm arch
#----------------------------
ARCH := $(shell uname -a)
ifneq (,$(filter $(ARCH), armv6l armv7l powerpc64le ppc64le aarch64))
USE_SSE=0
else
USE_SSE=1
endif
# Rabit library version, # Rabit library version,
# - librabit.a Normal distributed version. # - librabit.a Normal distributed version.
# - librabit_empty.a Non distributed mock version, # - librabit_empty.a Non distributed mock version,